What are Ad-Hoc commands?

0 votes
I've recently started studying Ansible. I had a small doubt. What are Ad-Hoc commands?
Mar 5 in Ansible by Adi
26 views

1 answer to this question.

0 votes
Ad-Hoc command is something that you would want it to be executed quickly without waiting for later. Ansible lets you do that without having to write an entire playbook for those commands.
answered Mar 5 by Yogesh
Can you plz give an example?

Suppose you need to run a reboot for all your company servers in a group 'xyz' in 12 parellel forks, you can use the following Ad Hoc command:

$ Ansible xyz -a "/sbin/reboot" -f 12

Related Questions In Ansible

0 votes
1 answer

What are the SCM tools supported by jenkins?

Hey @Jugnu, below are Source code management ...READ MORE

answered Feb 12 in Ansible by Imran
100 views
0 votes
1 answer

What are Action plugins in Ansible?

Action plugins work with the modules to ...READ MORE

answered Feb 19 in Ansible by Jobin
67 views
0 votes
1 answer

What are cache plugins in Ansible?

Cache plugins allow Ansible to store gathered facts ...READ MORE

answered Feb 19 in Ansible by Kashish
78 views
0 votes
1 answer

What are connection plugins in Ansible?

Hey @Jay, connection plugins allow ansible to ...READ MORE

answered Feb 19 in Ansible by Shalaka
71 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

What are the different types of plugins available in Ansible?

Ansible provides a huge variety of plugins ...READ MORE

answered Feb 19 in Ansible by Priya
55 views