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


How can one interpolate variables or dynamic variable names?



How can one interpolate variables or dynamic variable names?..

Answer / Tara Datt Joshi

Ad-hoc commands in Ansible are one-off tasks that can be run against specific hosts, without the need to write a full playbook. To run an ad-hoc command, use the `ansible` command followed by the host or group and the task you want to execute. Here's an example:nn$ ansible webservers -m ping

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

What features does the ansible tower provide?

1 Answers  


How do I access a variable of the first host in a group?

1 Answers  


why don’t you ship in x format?

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  


How do I submit a change to the documentation?

1 Answers  


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

1 Answers  


Write an ansible playbook to automate the starting of ec2 instance.

1 Answers  


How ansible different from the playbook?

1 Answers  


What are the ansible modules?

1 Answers  


How do I generate crypted passwords for the user module?

1 Answers  


How can I set the path or any other environment variable for a task or entire playbook?

1 Answers  


Does ansible support hardware provisioning?

1 Answers  


Categories