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

What are the ansible modules?

1 Answers  


How do I set the path or any other environment variable for a task?

1 Answers  


Explain in detail about ad-hoc command?

1 Answers  


Have you worked with ansible before? Please share your experience.

1 Answers  


Why is ‘{{ }}’ notation used? And how can one interpolate variables or dynamic variable names?

0 Answers  


Describe your newsletter ansible and who it’s aimed at.

1 Answers  


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

1 Answers  


Suppose you’re using ansible to configure the production environment and your playbook uses an encrypted file. Encrypted files prompt the user to enter passwords. But since ansible is used for automation, can this process be automated?

1 Answers  


What is the use of ansible vaults?

1 Answers  


Is ansible an open source tool?

1 Answers  


How does configuration management is help an organization?

1 Answers  


What are the variables in ansible?

1 Answers  


Categories