in Ansible by
Ad-hoc Commands of Ansible

▼ Show 1 Answer

0 votes

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

ansible host -m netscaler -a " user=ansiuser password=ansipass"  

The above Ad-hoc command accesses the NetScaler module to disable the server.

Learn More with Madanswer

Related questions

0 votes
+2 votes
asked May 8, 2020 in Ansible by SakshiSharma