mirror of https://github.com/ceph/ceph-ansible.git
set any_errors_fatal to true for all host sections
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 5f43dae593
)
pull/3457/merge
parent
e2852eb40e
commit
6e2cd0930f
|
@ -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
|
||||
|
@ -105,6 +108,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: mgrs
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -133,6 +137,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: osds
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -161,6 +166,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: mdss
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -189,6 +195,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: rgws
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -217,6 +224,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: nfss
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -245,6 +253,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: rbdmirrors
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -273,6 +282,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: restapis
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -305,6 +315,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: clients
|
||||
any_errors_fatal: true
|
||||
become: True
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
|
@ -337,6 +348,7 @@
|
|||
- hosts:
|
||||
- iscsigws
|
||||
- iscsi-gws # for backward compatibility only!
|
||||
any_errors_fatal: true
|
||||
gather_facts: false
|
||||
become: True
|
||||
pre_tasks:
|
||||
|
@ -363,6 +375,7 @@
|
|||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||
|
||||
- hosts: mons
|
||||
any_errors_fatal: true
|
||||
gather_facts: false
|
||||
become: True
|
||||
tasks:
|
||||
|
|
|
@ -395,6 +395,7 @@
|
|||
- 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
|
||||
|
|
Loading…
Reference in New Issue