Skip to content

Ansible Intermediate Quiz

Back to Quiz Home


Test your knowledge on roles, variables, and flow control.


#

Which variable definition has the highest precedence?

#

Which directory in a role is intended for default variables that are easily overridden?

#

What is the effect of serial: 1 in a playbook?

#

How do you iterate over a list in a task?

#

Which keyword allows you to execute a task only if a specific condition is met?

#

What triggers a Handler to run?

#

What tool is used to encrypt sensitive data in Ansible?

#

Which Jinja2 filter would you use to get the last element of a path?

#

How do you execute a task on the localhost regardless of the target host in the play?

#

Which Ansible feature allows you to group tasks and handle errors (try/catch)?

#

What is the purpose of the templates directory in a role?

#

Which keyword runs a task asynchronously, allowing Ansible to proceed without waiting?

#

What command creates the directory structure for a new role?

#

Which module is used to ensure a service is started and enabled?

#

How do you access variables from another host?

#

What is the default fork count (parallel processes) in Ansible?

#

Which lookup plugin reads the contents of a file on the controller?

#

What is the difference between import_playbook and include_playbook?

#

Which variable contains the hostname of the machine Ansible is currently running on (controller)?

#

How do you suppress the output of a task that prints potential secrets?

Quiz Progress

0 / 0 questions answered (0%)

0 correct