Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain in detail about ad-hoc command?



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

Post New Answer

More Ansible Interview Questions

How is ansible used in a continuous delivery pipeline? Explain.

1 Answers  


What are playbooks in ansible?

1 Answers  


How to create encrypted files using ansible?

1 Answers  


How do I access shell environment variables?

1 Answers  


How can you connect other devices within ansible?

1 Answers  


How to keep secret data in playbook?

0 Answers  


List some advantages of using ansible.

1 Answers  


Where does the configuration file live and what can I configure in it?

1 Answers  


Enlist the differences between variable name and environment variables.

1 Answers  


What are the advantages of ansible?

1 Answers  


What is ci/cd?

1 Answers  


What are ad-hoc commands?

1 Answers  


Categories