You are on page 1of 4

Ansible can deploy to virtualization and cloud environments, Including

Ansible acquired by
Which of the following is a valid YAML syntax?
Ansible is
Which configuration management software is Agentless?
YAML uses tabs for indentation, True or false?
Design goals of Ansible include
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?
Where is Inventory file located by default?
Which command tells ansible to run the playbook on all the hosts except host1?
Which one is not a valid value of state argument of "file" module?
Which Ansible module is used to manage docker services and containers.
You write comments in Jinja2 as:
Handler run only once even if you run the playbook multiple times.
Ansible modules will apply changes everytime you run Playbook.
Modules are temporarily stored in the nodes and communicate with the control machine through a ______ protocol over the standard output.
Which module copies dynamically generated file from control machine to target hosts?
Which module can be used to force a handler to run in between two tasks?
What module can be used to stop a playbook execution for some time?
Which module will you use to create a directory?
Identify the order of execution of handlers in the below snippet.
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 command do you use to do a syntax check on your playbook?
Using which module can you see the list of all the ansible variables?
A Playbook starts with three dots …A Playbook starts with three dots …
Which module you can use to install Apache in Ubuntu OS?
What is the output statement of the following snippet?
tasks:
- name: test
shell: echo "hello"
register: a
debug: msg="the message is {{ a.stdout }}"
Which of these will loop through items randomly?
You cannot define multiple conditions
vars:
A^MHYVT%S
tasks:
- shell: echo "Bang on!! You won."
when: ??
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?
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?
Design goals of Ansible include
All the Options
Red Hat
path: F:\test
All the options mentioned
Ansible
0
All the options mentioned
both gather_facts: no or gather_facts: False
Fetch
/etc/ansible/hosts
ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit 'all:!host1'
folder
docker_service
{# #}
1
0
JSON
template
meta
pause
file
test-test1-handler_2-handler_3-handler_1

ansible-playbook <playbook_name> --syntax-check


setup
0
apt
syntax error because of conflicting action statements

with_random_choice
0
when: score == 3

/etc/ansible
5
pipelining
Forks
become=true
1
1
All the options mentioned

You might also like