]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: fix mgr upgrade issue
authorGuillaume Abrioux <gabrioux@redhat.com>
Sun, 22 Jan 2023 07:21:31 +0000 (08:21 +0100)
committerTeoman ONAY <tonay@redhat.com>
Wed, 31 May 2023 21:07:13 +0000 (23:07 +0200)
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>
infrastructure-playbooks/rolling_update.yml

index c58e177d9ed117b04f89879b821d170b14c0303a..198a8316a7b904be192bdf838b73c2bff7aaba12 100644 (file)
         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