in Technology by
Which command tells ansible to run the playbook on all the hosts except host1? (i)ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit "all:!host1" (ii)ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit 'all:!host1' (iii)ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit "!host1" (iv)ansible-playbook playbooks/PLAYBOOK_NAME.yml -limit 'all:!host1'

1 Answer

0 votes
by
Which command tells ansible to run the playbook on all the hosts except host1? answer is :- (ii)ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit 'all:!host1'

Related questions

0 votes
    How to keep data secret in a Ansible playbook?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    Using which module can you see the list of all the ansible variables? (i)ping (ii)fetch (iii)setup (iv)copy...
asked Jan 25, 2023 in Technology by JackTerrance
0 votes
    A Playbook starts with three dots …. (1)False (2)True...
asked Jan 26, 2023 in Education by JackTerrance
0 votes
    How to define the number of parallel processes while communicating to remote hosts? (i)become (ii)forks (iii)pipelining (iv)become_method...
asked Jan 25, 2023 in General by JackTerrance
0 votes
    Which Ansible module is used to manage docker services and containers. (i)docker_login (ii)docker_container (iii)docker (iv)docker_service...
asked Jan 25, 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
    How many modules are there in Ansible?...
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
0 votes
    How does synchronize module works of an Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Tag in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    In the context of Ansible, what is meant by “facts”?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    How to use Ansible for creating encrypted files?...
asked Jan 28, 2023 in Technology by JackTerrance
...