in Technology by
What is meant by Ad-Hoc commands? Give one example.

1 Answer

0 votes
by

Simple, one-line commands that are given to carry out specific tasks are called Ad-hoc commands. These commands can be thought of as an alternative to writing playbooks. One example of an Adhoc command has been given below:

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

Related questions

0 votes
    Which of the following is used to run ad hoc R commands? (a) R Console (b) R Primer (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    In the context of Ansible, what is meant by “facts”?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    What is the ad-hoc command in Ansible?...
asked Jul 29, 2021 in Technology by JackTerrance
0 votes
    The ws-discovery specifications explains how to protect your network from message alteration Denial of service replay ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    What is the function used to stop capturing the ad hoc timing ? (a) stopadhoc() (b) stopTimer() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is meant by a fissiionable isotope? How are such isotopes produced artifically ? Give an example. Select the correct answer from above options...
asked Jan 2, 2022 in Education by JackTerrance
0 votes
    Nodes are managed by a controlling machine over ____________. 1. HTTP 2. HTTPs 3. FTP 4. SSH...
asked Jan 27, 2023 in Technology by JackTerrance
0 votes
    What are the components of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Ansible pipelining?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is use of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What are Ansible's roles?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How many modules are there in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How to keep data secret in a Ansible playbook?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How is Ansible upgraded?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is a handler in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
...