You are on page 1of 6

S.

No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

23

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Questions
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 control machine?
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 except host1?
If you do not need any facts from the host, what command would you use?
Ansible modules will apply changes everytime you run Playbook.
Which module copies dynamically generated file from control machine to target hosts?
Identify the order of execution of handlers in the below snippet.
Modules are temporarily stored in the nodes and communicate with the control machine through a ______ prot
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 tasks?
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?
How do you use variable to apply condition?
ansible.cfg should be present in
what is the default forks value in configuration file?
How can you reduce the number of SSH connections required?
How to define the number of parallel processes while communicating to remote hosts?
You can activate your privilege escalations using which settings?
Nodes are managed by a controlling machine over ____________.
To store sensitive information you can use ansible-vaulte.
Ansible can work as a push automated deployment system and as well as a pull automated deployment system
In Try It Out section of this course, what was the value of "changed=?" under "Play Recap", when you executed
What is the output statement of the following snippet?
Ansible has two type of servers
Which os these will loop through items randomaly?
Answers
Red Hat
Ansible
All the options mentioned
All the Options
All the options mentioned
path: F:\test
0
fetch
folder
/etc/ansible/hosts
ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit 'all:!host1'
both gather_facts: no or gather_facts: False
0
template
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
1 0
syntax error because of conflicting action statements
Only node
with_random_choice

You might also like