What are Ad-hoc commands Give an example

0 votes
Apr 24, 2019 in DevOps & Agile by Sophie may
• 10,620 points
671 views

1 answer to this question.

0 votes

Ad-hoc commands are simple one-line commands used to perform a certain task. You can think of Adhoc commands as an alternative to writing playbooks. An example of an Adhoc command is as follows:

ansible host -m netscaler -a "nsc_host=nsc.example.com user=apiuser password=apipass"

The above Adhoc command accesses the netscaler module to disable the server.

answered Apr 24, 2019 by Tyrion anex
• 8,700 points

Related Questions In DevOps & Agile

+3 votes
2 answers
+2 votes
1 answer

What is the difference between a container and an image in Docker?

 Below is reference which you can follow to know ...READ MORE

answered Sep 20, 2018 in DevOps & Agile by shubham
• 7,340 points
1,203 views
0 votes
1 answer

How to give a name to an image in Dockerfile ?

This needs to be done in your ...READ MORE

answered Nov 17, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
1,532 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP