]> 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 14:04:41 +0000 (15: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>
(cherry picked from commit 5f43dae5938b4c0a3bfbafccf9e2aa13816a237f)

site-docker.yml.sample
site.yml.sample

index b12385a062ec73c701d8e8c0f5f14d3c6c00897f..8b9f74054d4e58b9958956a24e7d4808216f15be 100644 (file)
@@ -72,6 +72,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
@@ -82,6 +83,7 @@
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mons
+  any_errors_fatal: true
   become: True
   gather_facts: false
   roles:
@@ -95,6 +97,7 @@
   serial: 1 # MUST be '1' WHEN DEPLOYING MONITORS ON DOCKER CONTAINERS
 
 - hosts: mons
+  any_errors_fatal: true
   tasks:
     - name: set ceph monitor install 'Complete'
       run_once: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mgrs
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: osds
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mdss
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rgws
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: nfss
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rbdmirrors
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: restapis
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: clients
+  any_errors_fatal: true
   become: True
   gather_facts: false
   pre_tasks:
 - hosts:
     - iscsigws
     - iscsi-gws # for backward compatibility only!
+  any_errors_fatal: true
   gather_facts: false
   become: True
   pre_tasks:
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mons
+  any_errors_fatal: true
   gather_facts: false
   become: True
   tasks:
         msg: "{{ ceph_status.stdout_lines }}"
       delegate_to: "{{ groups['mons'][0] }}"
       run_once: true
-      when: not ceph_status.failed
+      when: not ceph_status.failed
\ No newline at end of file
index 5ecba702c1ca3caec4d3f4fd1118ad16798f5472..de25ff8e3ce9c52046d8873908f2f4305931ebb0 100644 (file)
 - hosts: mons
   gather_facts: false
   become: True
+  any_errors_fatal: true
   tasks:
     - name: get ceph status from the first monitor
       command: ceph --cluster {{ cluster | default ('ceph') }} -s