Ansible Automation Sibelius
Ansible Automation Sibelius
Ansible Automation Sibelius
ansible -- correct
Ansible is
All
Ansible acquired by
red hat -- correct
Which module can be used to copy files from remote machine to control machine?
fatch -- correct
Which command tells ansible to run the playbook on all the hosts except host1?
ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit "all:!host1" -- correct
===================================================================================
===========
Which Ansible module is used to manage docker services and containers.
Docker_service -- correct
Which module copies dynamically generated file from control machine to target
hosts?
copy , fatch --wrong
What module can be used to stop a playbook execution for some time?
pause -- correct
Handler run only once even if you run the playbook multiple times.
true -- correct
===================================================================================
==================
What is the output statement of the following snippet?
tasks:
- name: test
shell: echo "hello"
register: a
debug: msg="the message is {{ a.stdout }}"
syntex error because of conflicting action statement --correct
Using which module can you see the list of all the ansible variables?
setup --correct
vars:
score: 3
Tasks:
- shell: echo "Bang on!! You won."
When: ??
How do you use variable to apply condition?
when:score ==3 --correct
How to define the number of parallel processes while communicating to remote hosts?
forks --correct
===================================================================================
=======================
To store sensitive information you can use ansible-vaulte?
true --correct
Ansible can work as a push automated deployment system and as well as a pull
automated deployment system?
TRUE --correct
===================================================================================
===================================================================================
=
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?
-- 0
Which module can be used to force a handler to run in between two tasks?
--meta
If you do not need any facts from the host, what command would you use?
gather_facts: no AND gather_facts: False
Identify the order of execution of handlers in the below snippet. ----- - test-test
1 handler_1- handler_2 - handler_3
tasks:
- name: test
## some code ##
notify:
- handler_1
- handler_2
- handler_3
- name: test1
## some code##
notify:
- handler_1
handlers:
- name: handler_2
## some code ##
- name: handler_3
- name: handler_1
Which module can be used to force a handler to run in between two tasks?
metaGit
Modules are temporarily stored in the nodes and communicate with the control
machine through a ______ protocol over the standard output
Json
=================================================================