Some people use the switch playbook to perform upgrade so they end up in
the same situation than https://bugzilla.redhat.com/show_bug.cgi?id=
1650572
This is applying the same fix as
729744c6a8c69f5fdf66b67fb28063297996e30a.
We don't want to fail on key that are not present since they will get
created after the mons are updated. They will be created by the task
"create potentially missing keys (rbd and rbd-mirror)".
Signed-off-by: Sébastien Han <seb@redhat.com>
# do not ever change this here
#rolling_update: false
+# this is only here for usage with the switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook
+# do not ever change this here
+#switch_to_container: false
+
#####################
# Docker pull retry #
#####################
# do not ever change this here
#rolling_update: false
+# this is only here for usage with the switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook
+# do not ever change this here
+#switch_to_container: false
+
#####################
# Docker pull retry #
#####################
become: true
pre_tasks:
+ - name: set_fact switch_to_container to indicate that we run a special playbook
+ set_fact:
+ switch_to_container: True
+
- name: select a running monitor
set_fact: mon_host={{ item }}
with_items: "{{ groups[mon_group_name] }}"
# do not ever change this here
rolling_update: false
+# this is only here for usage with the switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook
+# do not ever change this here
+switch_to_container: false
+
#####################
# Docker pull retry #
#####################
src: "{{ item.0 }}"
dest: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
flat: yes
- fail_on_missing: "{{ 'no' if rolling_update else 'yes' }}"
+ fail_on_missing: "{{ 'no' if rolling_update or switch_to_container else 'yes' }}"
with_together:
- "{{ ceph_config_keys }}"
- "{{ statconfig.results }}"