Answer Posted / 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 View All Answers
What features does the ansible tower provide?
How is ansible different from puppet?
How does configuration management is help an organization?
How to generate crypto passwords for the user module?
Why is ‘{{ }}’ notation used? And how can one interpolate variables or dynamic variable names?
What does fact mean in ansible?
Can you copy files recursively onto a target host? If yes, how?
How can I display all the inventory vars defined for my host?
How can I set the path or any other environment variable for a task or entire playbook?
Can you build your own modules with ansible?
How can one interpolate variables or dynamic variable names?
How do I see all the inventory vars defined for my host?
Is it possible to build our modules in ansible?
How can you create a lamp stack and deploy a webpage by using ansible?
How to keep secret data in playbook?