Questions
- Which Ansible module can be used to run tasks from a separate external task file when a playbook is run?
a)
ansible.builtin.import
b)
ansible.builtin.include
c)
ansible.builtin.tasks_file
d)
ansible.builtin.with_tasks
- Variable data can be passed to an external task file when it is called:
a) True
b) False
- The default name of the variable containing the current loop value is:
a)
i
b)
loop_var
c)
loop_value
d)
item
- When looping over external task files, it is important to consider setting which special variable to prevent loop variable name collisions?
a)
loop_name
b)
loop_item
c)
loop_var
d)
item
- Handlers are generally run:
a) Once, at the end of the play
b) Once each, at the end of the
pre_tasks
,roles/tasks
, andpost_tasks
sections of the playc) Once each, at the end of the
pre_tasks
,roles/tasks
, andpost_tasks
sections of the play and only when notifiedd) Once each, at the end of the
pre_tasks
,roles/tasks
, andpost_tasks
sections of the play and only when imported...