What are Ad-hoc commands Give an example

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

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,660 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,320 points
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 16, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer