|
120 | 120 | CEPH_CONTAINER_IMAGE: "{{ ceph_container }}" |
121 | 121 | CEPH_CONTAINER_BINARY: "{{ ceph_container_cli }}" |
122 | 122 | CEPH_CONF: "{{ ceph_config_tmp_client_home }}" |
123 | | - notify: restart mgr |
124 | 123 |
|
125 | 124 | - name: Print the resulting spec |
126 | 125 | when: debug | default(false) |
127 | 126 | ansible.builtin.debug: |
128 | 127 | msg: "{{ spc }}" |
129 | 128 |
|
| 129 | + - name: restart mgr |
| 130 | + become: true |
| 131 | + ansible.builtin.command: |
| 132 | + "{{ ceph_cli }} mgr fail" |
| 133 | + |
130 | 134 | # Check if a mon exists in the target node and remove it |
131 | 135 | - name: MON - Get tmp mon |
132 | 136 | ansible.builtin.command: "{{ ceph_cli }} orch ps --daemon_type mon --daemon_id {{ daemon_id }} -f json" |
|
143 | 147 | delay: "{{ ceph_retry_delay }}" |
144 | 148 | loop_control: |
145 | 149 | label: "MON - Get tmp mon" |
146 | | - notify: restart mgr |
| 150 | + |
| 151 | + - name: restart mgr |
| 152 | + become: true |
| 153 | + ansible.builtin.command: |
| 154 | + "{{ ceph_cli }} mgr fail" |
147 | 155 |
|
148 | 156 | - name: MON - Wait for the current mon to be deleted |
149 | 157 | ansible.builtin.pause: |
|
157 | 165 | - name: MON - Redeploy mon on {{ target_node }} |
158 | 166 | ansible.builtin.command: |
159 | 167 | "{{ ceph_cli }} orch daemon add mon {{ target_node }}:{{ mon_ipaddr }}" |
160 | | - notify: restart mgr |
| 168 | + |
| 169 | + - name: restart mgr |
| 170 | + become: true |
| 171 | + ansible.builtin.command: |
| 172 | + "{{ ceph_cli }} mgr fail" |
161 | 173 |
|
162 | 174 | - name: MON - Wait for the spec to be updated |
163 | 175 | ansible.builtin.pause: |
|
197 | 209 | CEPH_CONTAINER_IMAGE: "{{ ceph_container }}" |
198 | 210 | CEPH_CONTAINER_BINARY: "{{ ceph_container_cli }}" |
199 | 211 | CEPH_CONF: "{{ ceph_config_tmp_client_home }}" |
200 | | - notify: restart mgr |
| 212 | + |
| 213 | +- name: restart mgr |
| 214 | + become: true |
| 215 | + ansible.builtin.command: |
| 216 | + "{{ ceph_cli }} mgr fail" |
201 | 217 |
|
202 | 218 | # Wait for the redeploy to finish before moving to the next stage |
203 | 219 | - name: MON - wait daemons |
|
0 commit comments