Explain in detail about ad-hoc command?
Answer / Jitendra Singh Gautam
Ad-hoc commands are standalone Ansible commands used to execute a specific task without writing playbooks or inventory files. They can be useful for quick tests, emergency fixes, or one-off tasks. These commands use the ansible command followed by the host or group name and the module that needs to be executed. For example: ansible all -m ping will send a ping (icmp) to all hosts listed in inventory.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to keep secret data in a playbook?
What is ansible galaxy?
List some advantages of using ansible.
What is ansible role?
How do I handle python pathing not having a python 2.x in /usr/bin/python on a remote machine?
Is it unsafe to bulk-set task arguments from a variable?
How would you install ansible on a centos system?
Is ansible is an open source tool?
Compare ansible vs puppet?
Explain what are playbooks in ansible? Explain with some examples.
What is the way to access shell environment variables in ansible?
What are the advantages of ansible?