Answer Posted / 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 |
Post New Answer View All Answers
What are the variables in ansible?
When should you test playbooks and roles?
Desired to gain proficiency on ansible?
How is ansible different from puppet?
What is ansible role?
What features does the ansible tower provide?
Write a playbook to create a backup of a file in the remote servers before copy.
Explain different modules in ansible.
How would you install ansible on a centos system?
How to access a variable of the first host in a group?
How do I submit a change to the documentation?
How can you speed up management inside in ec2?
What is the use of ansible?
Where does the configuration file live and what can I configure in it?
What are ad-hoc commands?