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 |
What are the variables in ansible?
How to install ansible?
How is ansible different from puppet?
Explain the callback plugin in ansible?
What is the method to check the inventory vars defined for the host?
How would you install ansible on a centos system?
How ansible works?
How can you handle different machines needing different user accounts or ports to log in with?
Explain callback_plugin in ansible?
What’s the use of ansible?
What is ansible tower?
How can you access a list of ansible_variables?