Commit e9ddb972 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

update: followup on 07029e1b

Playbook must fail anyway, the `rescue` block has been introduced for
unmasking the unit after the playbook has failed.
Signed-off-by: default avatarGuillaume Abrioux <>
parent c33de174
......@@ -270,12 +270,9 @@
- name: unmask the mon service
name: ceph-mon@{{ item }}
name: ceph-mon@{{ ansible_facts['hostname'] }}
enabled: yes
masked: no
- "{{ ansible_facts['hostname'] }}"
- "{{ ansible_facts['fqdn'] }}"
- name: unmask the mgr service
......@@ -284,6 +281,10 @@
when: inventory_hostname in groups[mgr_group_name] | default([])
or groups[mgr_group_name] | default([]) | length == 0
- name: stop the playbook execution
msg: "There was an error during monitor upgrade. Please, check the previous task results."
- name: reset mon_host
hosts: "{{ mon_group_name|default('mons') }}"
become: True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment