Professional Documents
Culture Documents
False
Ansible acquired by
Red Hat
path: F:\test
Ansible is
Ansible
/etc/ansible/hosts
If you do not need any facts from the host, what command would you use?
Which module can be used to copy files from remote machine to control machine?
Fetch
Folder
Which command tells ansible to run the playbook on all the hosts except host1?
ansible-playbook playbooks/PLAYBOOK_NAME.yml -limit 'all:!host1' / ansible-playbook
playbooks/PLAYBOOK_NAME.yml --limit "!host1" /
Which module copies dynamically generated file from control machine to target hosts?
template
File
What module can be used to stop a playbook execution for some time?
pause
False
test-test1-handler2-handler3-handler_1
Handler run only once even if you run the playbook multiple times.
True
Which module can be used to force a handler to run in between two tasks?
meta
Modules are temporarily stored in the nodes and communicate with the control machine
through a ______ protocol over the standard output.
JSON
docker_service
{# #}
Which module you can use to install Apache in Ubuntu OS?
Apt
False
tasks:
- name: test
shell: echo "hello"
register: a
debug: msg="the message is {{ a.stdout }}"
Using which module can you see the list of all the ansible variables?
Setup
ansible-playbook --syntax-check
False
with_random_choice
when: score == 3
Pipelining
5
ansible.cfg should be present in
/etc/ansible
Ansible can work as a push automated deployment system and as well as a pull automated
deployment system?
True
Only node
In Try It Out section of this course, what was the value of "changed=?" under "Play
Recap", when you executed the same playbook for second time?
become=True
How to define the number of parallel processes while communicating to remote hosts?
forks