Add `any_errors_fatal: true` to all host sections in `site.yml.sample`
and `site-container.yml.sample` so that the playbook execution
ceases spontaneously and instantaneously when errors occurs.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
- (not (inventory_hostname in groups.get('clients', [])) or (inventory_hostname == groups.get('clients', [''])|first))
- hosts: mons
+ any_errors_fatal: true
tasks:
- name: set ceph monitor install 'In Progress'
run_once: true
name: ceph-mgr
- hosts: mons
+ any_errors_fatal: true
tasks:
- name: set ceph monitor install 'Complete'
run_once: true
- hosts: mgrs
become: True
gather_facts: false
+ any_errors_fatal: true
tasks:
# pre-tasks for following imports -
- name: set ceph manager install 'In Progress'
- hosts: mons
gather_facts: false
become: True
+ any_errors_fatal: true
tasks:
- import_role:
name: ceph-defaults
- hosts: mons
gather_facts: false
become: True
+ any_errors_fatal: true
tasks:
- import_role:
name: ceph-defaults