in Ansible by (23.9k points)
Ad-hoc Commands of Ansible

1 Answer

0 votes
by (32.2k points)

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.

Related questions

0 votes
0 votes
asked Apr 17, 2022 in Apache Drill by sharadyadav1986 (31.6k points)
0 votes
asked Jun 12, 2019 in Interview Question by heath (53 points)
0 votes
...