Fyi : i have also tried below command too ansible -s server -m yum -a "name=wget state=absent" ansible server -m yum -a "name=wget state=absent" -u root --private-key=~/.ssh/awspwd
Hi Ravi, Am following your video but while trying to install packaged via ansible script am getting the following the error Kindly assist me on this ansible server -m yum -a "name=wget state=present" master | FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "msg": "This command has to be run under the root user.", "results": [] } node1 | FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "msg": "This command has to be run under the root user.", "results": []
Ansible Automation Playlist th-cam.com/play/PL8cE5Nxf6M6YUaKyuon-AWRDNr31ANuo2.html
I watched your all videos.. Your teaching method is easily understand. Thanks you so much bro.. I am waiting for next video..
Thanks Venkatraman
I'm following you the all videos are simple awesome and expecting more from you. If possible do it for terraform also
after completion of this.
Thanks
Thanks again your A GOOD INSTRUCTOR
I appreciate that!
Video is just incredible do u have some pdf related to ansible automation EX407
No, PDF documentation however in website and Github there are playbooks.
Fyi : i have also tried below command too
ansible -s server -m yum -a "name=wget state=absent"
ansible server -m yum -a "name=wget state=absent" -u root --private-key=~/.ssh/awspwd
Good.
I found that am using latest version of ansible so -b is the sudo command
why we are using ansible all -m ping
but why can't
ansible all -m shell -a "ping"
for the remaining commands we are using ansible all -a "uptime"
Either way you can use it, however we are using ping module instead of ping command.
Bro every video of yours is great and easy to understand. I have one doubt instead NOT_LOGGING_PASSWORD. How do we give password access.Thank you
Watch my new video
@@TechArkit Thanks
Hi Ravi,
Am following your video but while trying to install packaged via ansible script am getting the following the error
Kindly assist me on this
ansible server -m yum -a "name=wget state=present"
master | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "This command has to be run under the root user.",
"results": []
}
node1 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "This command has to be run under the root user.",
"results": []
You should become an root user using -b --become-user option
sir how to login ny password through ad hoc command .plz help
you can specify in ansible configuration file