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 is ansible used in a continuous delivery pipeline? Explain.
What are playbooks in ansible?
How to create encrypted files using ansible?
How do I access shell environment variables?
How can you connect other devices within ansible?
How to keep secret data in playbook?
List some advantages of using ansible.
Where does the configuration file live and what can I configure in it?
Enlist the differences between variable name and environment variables.
What are the advantages of ansible?
What is ci/cd?
What are ad-hoc commands?