Categories

Nov 13, 2019 in Ansible

Q: Ad-hoc Commands of Ansible

1 Answer

Nov 13, 2019

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 "nsc_host=nsc.example.com user=ansiuser password=ansipass"  

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

Click here to read more about Ansible
Click here to read more about Insurance

Related questions

Madanswer
May 8 in Ansible
Nov 13, 2019 in Ansible
Jan 29 in Ansible
...