0% found this document useful (0 votes)
929 views3 pages

Ansible Automation Sibelius

Ansible is an agentless configuration management tool that can deploy to virtual and cloud environments. It uses YAML for syntax and tabs for indentation. Red Hat acquired Ansible. The inventory file is typically located at /etc/ansible/hosts and the fetch module can copy files from remote machines to the control machine.

Uploaded by

Rahul Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
929 views3 pages

Ansible Automation Sibelius

Ansible is an agentless configuration management tool that can deploy to virtual and cloud environments. It uses YAML for syntax and tabs for indentation. Red Hat acquired Ansible. The inventory file is typically located at /etc/ansible/hosts and the fetch module can copy files from remote machines to the control machine.

Uploaded by

Rahul Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Which configuration management software is Agentless?

ansible -- correct

Ansible is
All

Ansible acquired by
red hat -- correct

Which of the following is a valid YAML syntax?


All the mentioned -- correct

YAML uses tabs for indentation, True or false?


FALSE -- correct

Ansible can deployed to vertualization and cloud enviornment, including


All -- correct
===================================================================================
====================
Where is Inventory file located by default?
/etc/ansible/host -- 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

Ansible modules will apply changes everytime you run Playbook.


false -- 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

A playbook start with three dots ...


False --correct
===================================================================================
=============
Which of these will loop through items randomaly?
with_random --wrong

vars:
score: 3
Tasks:
- shell: echo "Bang on!! You won."
When: ??
How do you use variable to apply condition?
when:score ==3 --correct

You cannot define multiple conditions


false --correct
===================================================================================
====================
what is the default forks value in configuration file?
depends upon the host enventory --wrong / 1

How to define the number of parallel processes while communicating to remote hosts?
forks --correct

How can you reduce the number of SSH connections required?


pipeline --correct

===================================================================================
=======================
To store sensitive information you can use ansible-vaulte?
true --correct

Which command do you use to do a syntax check on your playbook?


ansible-playbook <playbook_name> --syntax-check --correct

Ansible has two typs of servers


only nodes --correct

Ansible can work as a push automated deployment system and as well as a pull
automated deployment system?
TRUE --correct

You can activate your privilege escalations using which settings?


Become=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

Nodes are managed by a controlling machine over________.


SSH.

If you do not need any facts from the host, what command would you use?
gather_facts: no AND gather_facts: False

You write comments in Jinja2 as:


--{# #}

Which one is not a valid value of state argument of "file" module?


--absent --wrong --folder

Which module can you use to create a directory? -- new


template

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

ansible.cfg should be present in


-- /etc/ansible

Which module you can use to install Apache in Ubuntu OS?


apt

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
=================================================================

You might also like