Questions
- By default, Ansible will stop processing further tasks for a given host after the first failure occurs:
a) True
b) False
- The
ansible.builtin.command
andansible.builtin.shell
modules' default behavior is to only ever give a task status ofchanged
orfailed
:a) True
b) False
- You can store the results from a task using which Ansible keyword?
a)
store:
b)
variable:
c)
register:
d)
save:
- Which of the following directives can be used to change the failure condition of a task?
a)
error_if:
b)
failed_if:
c)
error_when:
d)
failed_when:
- You can combine multiple conditional statements in Ansible using which of the following?
a)
and
b)
or
c) The YAML list format (which works the same as a logical
AND
)d) All of the above
- Changes can be suppressed with which of the following?
a)
suppress_changed: true
b)
changed_when: false
c)
changed: false
d)
failed_when: false
- In a
block
section, all tasks are executed in order on all hosts:a) Until the first error occurs
b) Regardless...