Professional Documents
Culture Documents
Ansible
Ansible
Ansible acquired by
Which configuration management software is Agentless?
Design goals of Ansible include
Ansible can deploy to virtualization and cloud environments, Including
Ansible is
Which of the following is a valid YAML syntax?
YAML uses tabs for indentation, True or false?
Which module can be used to copy files from remote machine to contro
Which one is not a valid value of state argument of "file" module?
Where is Inventory file located by default?
Which command tells ansible to run the playbook on all the hosts excep
If you do not need any facts from the host, what command would you u
Ansible modules will apply changes everytime you run Playbook.
Which module copies dynamically generated file from control machine to
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
Modules are temporarily stored in the nodes and communicate with the
Which Ansible module is used to manage docker services and containers
Which module can be used to force a handler to run in between two tas
Which module will you use to create a directory?
You write comments in Jinja2 as:
What module can be used to stop a playbook execution for some time?
Handler run only once even if you run the playbook multiple times.
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?
Which command do you use to do a syntax check on your playbook?
Which module you can use to install Apache in Ubuntu OS?
A Playbook starts with three dots …
You cannot define multiple conditions
Which of these will loop through items randomly?
vars:
score: 3
tasks:
- shell: echo "Bang on!! You won."
when: ?? How do you use variable to apply condition?
test-test1-handler_2-handler_3-handler_1
JSON
docker_service
meta
file
{# #}
pause
1
error
setup
ansible-playbook <playbook_name> --syntax-check
apt
0
0
with_random_choice
when: score == 3
/etc/ansible
5
pipelining
forks
become=true
SSH
1
1