]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
set any_errors_fatal to true for all host sections
authorRishabh Dave <ridave@redhat.com>
Mon, 17 Dec 2018 10:34:46 +0000 (16:04 +0530)
committerSébastien Han <seb@redhat.com>
Thu, 20 Dec 2018 13:04:11 +0000 (14:04 +0100)
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>
site-container.yml.sample
site.yml.sample

index 1a9a321b372045cc8359c043ef3a6da2e90406a6..ee9207b9d7efd0ff029a1c7d5f552168c383629e 100644 (file)
@@ -89,6 +89,7 @@
         - (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
index f594633d7c759ac08b9c26908575dd5fd5806659..43547e2855a819e3e3bb45d16c16c54db3b9119d 100644 (file)
 - hosts: mons
   gather_facts: false
   become: True
+  any_errors_fatal: true
   tasks:
     - import_role:
         name: ceph-defaults