diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 0dfdd0a52..e06dd40d3 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -105,11 +105,21 @@ - containerized_deployment - mon_host_count | int == 1 - - name: stop ceph mon + - name: stop ceph mon - shortname systemd: name: ceph-mon@{{ ansible_hostname }} state: stopped enabled: yes + ignore_errors: True + when: + - not containerized_deployment + + - name: stop ceph mon - fqdn + systemd: + name: ceph-mon@{{ ansible_fqdn }} + state: stopped + enabled: yes + ignore_errors: True when: - not containerized_deployment @@ -124,7 +134,7 @@ post_tasks: - name: start ceph mon systemd: - name: ceph-mon@{{ ansible_hostname }} + name: ceph-mon@{{ monitor_name }} state: started enabled: yes when: @@ -132,7 +142,7 @@ - name: restart containerized ceph mon systemd: - name: ceph-mon@{{ ansible_hostname }} + name: ceph-mon@{{ monitor_name }} state: restarted enabled: yes daemon_reload: yes