You are on page 1of 2

Ansible Choral

delete installed role - remove


dependencies of your role - meta
stores dynamic files - templates
Which folder does not require main.yml file? - defaults, HANDLER,
How can your scaffold your roles? - ansible galaxy
Variables defined in this folder have least priority. - DEFAULTS
You can view the details of a role using which of the following? - INFO
Handler names and listen topics live in a global namespace. TRUE
How do you define Variables in Command Line Interface while executing playbook? =
--EXTRA-VAR
GITHUT PROFILE - TRUE
Fact variables have higher precedence than Playbook Variables - FALSE
SECRET DATA - VAULT
1. Defining same variable in multiple locations will cause error . - FALSE
fact variable - false
gather_facts:no
fact of a host : setup
built in variable - all
save output of the tast: register
complex variable error- {{ [] }}
non tag task - non
which tag - all
specific part of the playbook - tags
which of include - All
Tag entire play - true
Can you run task not tagged - Yes
Design Goal of ansible include - all
YAML uses tab - false
YAML syntax - path:f: i\test
ansible is - all
ansible aquired by - red hat
agentless -
design goal of ansible includes -

Ansible - Sibelius

Design Goal of ansible include - all


YAML uses tab - false
YAML syntax - path:f: i\test
ansible is - all
ansible aquired by - red hat
agentless -
design goal of ansible includes -

HANDSON
----------------------------------------------------------------------
Registered Variable:
----------------------------------------------------------------------
echo "[group1]" > myhosts
echo "host01 ansible_ssh_user=ubuntu" >> myhosts
vi test.yml

---
- name: copy files
hosts: all
tasks:
- copy: src=afile.txt dest=/home/ubuntu/afile_copy.txt

:wq

ansible-playbook -i myhosts test.yml


-------------------------------------------------------------------------
Ansible Roles - Do as per instruction given
--------------------------------------------------------------------------
Galaxy Useful Command - Do as per instruction given
-------------------------------------------------------------------------
Practicals - Special Tags - Do as per instruction given
-------------------------------------------------------------------------
Hostvars - Do as per instruction given
-------------------------------------------------------------------------
include - Do as per instruction given
---------------------------------------------------------------------------

You might also like