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 are the variables in ansible?

1 Answers  


How to install ansible?

1 Answers  


How is ansible different from puppet?

1 Answers  


Explain the callback plugin in ansible?

1 Answers  


What is the method to check the inventory vars defined for the host?

1 Answers  


How would you install ansible on a centos system?

1 Answers  


How ansible works?

1 Answers  


How can you handle different machines needing different user accounts or ports to log in with?

1 Answers  


Explain callback_plugin in ansible?

1 Answers  


What’s the use of ansible?

1 Answers  


What is ansible tower?

1 Answers  


How can you access a list of ansible_variables?

1 Answers  


Categories