Hey Yogesh, You post awesome videos, hats off!! If you can put the commands or the link to the commands in TH-cam show notes that will be very helpful.
Hi Evelyn, I have posted new video today. Explained ansible in littlebit more depth. Examples are given on Apache WebServer installation. Cheers, Yogesh
Hi Yogesh, I have a shell script which needs user's input while executing, could you please guide me how to run it via ansible playbook. Thanks & Regards, Mohammad Faizan
Hi Yogesh , is there any possibility to remove (ed : TASK [Print version] **************************** , ) these type of lines when we run the play book. Could you please let me know if there is any possibility to remove when we run the playbook. Thanks Rajasekhar
Hi Yogesh Sir Could you please help to roleback any things which I have done on ansible controller for any ansible client/node? This is an important question for me and I would like to know the answer from you. I'll be very grateful to you if you could provide me the solution.. Thanks & Regards Suresh
Hello Mahesh, Yes this can be done. Playbook will look like below one.- hosts: all user: ansadm vars: hashedpass: $1$SAfd$UqddPX3r45hJ5/ZI tasks: - user: name=youruser password={{hashedpass}} Please Note - To generate hashedpass , you can follow below link.docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
Thanks Yogesh.. Great work.. I have an issue. Please help me in this. Issue:- Not reading aliases of Ansible clients I have alias 'cdhome' to go to my application's home directory in all servers. node 1:- alias cdhome='cd /var/MT_SMS_TN/' node 2:- alias cdhome='cd /mnt/MO_SVSI_MN/' node 3:- alias cdhome-'cd /opt/BLR/' etc.. I want to copy webapps folder from my home path to /var/backup folder using ansible play book. I am using below yaml file, but it is not working. - hosts: test group tasks: - name: 1. change directory shell: "cdhome" - name: 2. copy script: copy webapp to dest shell: "cp -r webapps /var/backup/"
Hello yogesh, I getting this issue my syntax is fine TASK [Install Latest Version HTTPD RPMs] *************************************** fatal: [ansible-slave]: FAILED! => {"changed": true, "failed": true, "msg": "You need to be root to perform this command. ", "rc": 1, "results": ["Loaded plugins: langpacks, versionlock "]}
I was searching a good video which will clear my doubts...Got it ..very clearly .(All video of Anisble)
thanks for the feedback
Hey Yogesh,
You post awesome videos, hats off!!
If you can put the commands or the link to the commands in TH-cam show notes that will be very helpful.
Very useful to the Begginers.. Crisp and clear.. Thanks Yogesh 🙏. Appericate your efforts.. Subscribed 👍👍
Cheers
excellent session Yogesh.
Good simple explanation. One doubt- what if different hosts in appgroup have different users and passwords?
Hi Yogesh,
I really appreciate your videos. Please can you give an example of customised deployment through Ansible. I meant conditional installation.
Thank you. It's a useful video for a beginner. Can you put together a playbook tutorial video to deploy your web app to aws. Thanks
Thanks for your feedback Evelyn. Yeah for sure, I will post a video on deploying web app either Apache or Nginx using ansible on AWS in coming days..
Hi Evelyn, I have posted new video today. Explained ansible in littlebit more depth. Examples are given on Apache WebServer installation.
Cheers,
Yogesh
Hi Yogesh,
I have a shell script which needs user's input while executing, could you please guide me how to run it via ansible playbook.
Thanks & Regards,
Mohammad Faizan
Hi Yogesh
can you please tell me how to rollback any file with last backup file with ansible ?????
Hi Yogesh ,
is there any possibility to remove (ed : TASK [Print version] **************************** , ) these type of lines when we run the play book. Could you please let me know if there is any possibility to remove when we run the playbook.
Thanks
Rajasekhar
Provide more details what you trying to achieve, will definitely try to help.
How to add more user in ansible?
Hi Yogesh,
It is very informative video. Thanks for sharing it. I just would like to know which automation tool is best for devops.
I found ansible to be best for DevOps Automation, if compare with Puppert/Chef/Salt.
I am getting a bytes-like object is required, not 'str'
while running an ansible script
If you can share exact error and your playbook I can try to
Look into issue
Hi Yogesh Sir
Could you please help to roleback any things which I have done on ansible controller for any ansible client/node?
This is an important question for me and I would like to know the answer from you.
I'll be very grateful to you if you could provide me the solution..
Thanks & Regards
Suresh
Thanks Yogesh for sharing this video.. Its very useful for beginners.
can we push the remote server local user password through ansibleplaybook?
Hello Mahesh, Yes this can be done. Playbook will look like below one.- hosts: all
user: ansadm
vars:
hashedpass: $1$SAfd$UqddPX3r45hJ5/ZI tasks:
- user: name=youruser password={{hashedpass}}
Please Note - To generate hashedpass , you can follow below link.docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
Hello sir bt in your startup video u said ansible is written in python and in this video u saying it's yaml or json
Thanks Yogesh.. Great work..
I have an issue. Please help me in this.
Issue:- Not reading aliases of Ansible clients
I have alias 'cdhome' to go to my application's home directory in all servers.
node 1:- alias cdhome='cd /var/MT_SMS_TN/'
node 2:- alias cdhome='cd /mnt/MO_SVSI_MN/'
node 3:- alias cdhome-'cd /opt/BLR/'
etc..
I want to copy webapps folder from my home path to /var/backup folder using ansible play book.
I am using below yaml file, but it is not working.
- hosts: test group
tasks:
- name: 1. change directory
shell: "cdhome"
- name: 2. copy
script: copy webapp to dest
shell: "cp -r webapps /var/backup/"
Ashiq kt hi it's cd /home
Hi Yogesh, how may I contact you?
I got error when i check my playbook
"Error:playbook must be a list of plays"
please sur seesion on weblogic and splunk
Hi Siddharth,
Unfortunately as on date I don't have setup for weblogic and splunk :(
Sir, please upload the role and template related video
Sure Saroj Sir, I a week or two will upload videos
Hi Saroj,
I have uploaded a new video on Ansible roles and templates.
Cheers,
Yogesh
Hello yogesh,
I getting this issue my syntax is fine
TASK [Install Latest Version HTTPD RPMs] ***************************************
fatal: [ansible-slave]: FAILED! => {"changed": true, "failed": true, "msg": "You need to be root to perform this command.
", "rc": 1, "results": ["Loaded plugins: langpacks, versionlock
"]}
on the target machine, please configure root sudo.. ansible user you are using need to become root for running the commands
very nice CBT ..........................
thanks Saroj, I am happy if tutorials helped you.