Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Which variable allows you to save the output of a task?

register

Which module can tell you the fact variables of a host?


setup --Correct

Which ones are built-in variables?


All of the option --Correct

Fact variables have higher precedence than Playbook Variables


false --Correct

Which option will give you error while accessing your complex variable?
{{ ansible_eth0[ipv4][address] }} --Correct

You can skip the task of gathering facts through which of the following way?
gather_facts: no --Correct
-----------------------------------------------------------------------------------
---------------------
Which of the folowing can you include in your Playbook?
all of the option --Correct

which tag is executed by default while running a playbook?


all --Correct

You can run non tagged tasks using which magical word?
none of the option --Correct

this keyword gives you flexibility to run specific part of your playbook?
Tags

You can Tag entire play.


true --Correct

---------------------------------------------
How can your scaffold your roles?
ansible-galaxy

This folder defines the dependencies of your Role.


meta --Correct

Which folder does not require main.yml file?


templates --Correct

Which of the following can you use to delete your installed role?
remove

This folder stores your dynamic files.


template --Correct

veriables define in this folder have least priority.


defaults --Correct
---------------------------------------------
Ansible Automation Choral - Final Assessment
How do you define Variables in Command Line Interface while executing playbook?
--extra-vars --Correct

You can view the details of a role using which of the following?
ansible-galaxy init username.role -- wrong
You can contribute your roles to Ansible community through GitHub Profile.
true --Correct

Defining same variable in multiple locations will cause error .


false --Correct

How can your scaffold your roles?


ansible-playbook -- wrong

Handler names and listen topics live in a global namespace.


true --Correct

This allows you to keep secret data in playbook.


ansible-vault --Correct

Tagging allows you to run or skip certain part of Playbook. Can you run tasks that
are not tagged?
yes --Correct

How to access variables defined in one host from another host?


hostvars

You might also like