update: fix mgr upgrade issue

for some reason, this task has to be done in 2 steps otherwise it fails.
1/ stop and disable the service
2/ mask it

when done with with a single task, the module says the service has been
stopped while this isn't the case (Ansible systemd module bug?).

it possibly relates to https://github.com/ansible/ansible/issues/68680

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/7431/head
Guillaume Abrioux 2023-01-22 08:21:31 +01:00 committed by Teoman ONAY
parent 15b91962e7
commit 5cd692dcdc
1 changed files with 6 additions and 0 deletions

View File

@ -391,6 +391,12 @@
name: ceph-mgr@{{ ansible_facts['hostname'] }}
state: stopped
enabled: no
masked: no
failed_when: false
- name: mask ceph mgr systemd unit
systemd:
name: ceph-mgr@{{ ansible_facts['hostname'] }}
masked: yes
failed_when: false