From 5cd692dcdc8dd55036b8c283f1bca56f79965c1d Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Sun, 22 Jan 2023 08:21:31 +0100 Subject: [PATCH] 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 --- infrastructure-playbooks/rolling_update.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index c58e177d9..198a8316a 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -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 -- 2.47.3