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?

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


Please Help Members By Posting Answers For Below Questions

What are the variables in ansible?

2


When should you test playbooks and roles?

3


Desired to gain proficiency on ansible?

3


How is ansible different from puppet?

3


What is ansible role?

3


What features does the ansible tower provide?

2


Write a playbook to create a backup of a file in the remote servers before copy.

2


Explain different modules in ansible.

2


How would you install ansible on a centos system?

3


How to access a variable of the first host in a group?

3


How do I submit a change to the documentation?

3


How can you speed up management inside in ec2?

2


What is the use of ansible?

3


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

4


What are ad-hoc commands?

3