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...


What are ad-hoc commands? Give an example.



What are ad-hoc commands? Give an example...

Answer / Pradip Yadav

"Ad-hoc commands in Ansible refer to standalone or one-off commands that can be executed on remote hosts without creating a playbook. They are useful for tasks that don't require repetition across multiple hosts. An example of an ad-hoc command is running a shell command on a specific host:n[
"ansible all -m shell -a 'uname -a' "]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

Explain different modules in ansible.

1 Answers  


Does ansible support hardware provisioning?

1 Answers  


Compare ansible with chef.

1 Answers  


What is configuration management and how does it help an organization?

1 Answers  


What is ansible task?

1 Answers  


What is ansible and what makes it stand out from the rest of the configuration management tools?

1 Answers  


What is ansible role and how are they different from the playbook?

1 Answers  


When should I use {{ }}? Also, how to interpolate variables or dynamic variable names

1 Answers  


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

1 Answers  


When should you test playbooks and roles?

1 Answers  


How to keep secret data in playbook?

0 Answers  


What are ad-hoc commands?

1 Answers  


Categories