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
22 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
61 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
47 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
61 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
54 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
45 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.