Commit 104ba407 authored by Benoît Knecht's avatar Benoît Knecht Committed by Guillaume Abrioux
Browse files

ceph-mon: Fix check mode for deploy monitor tasks

Skip the `get initial keyring when it already exists` task when both commands
whose `stdout` output it requires have been skipped (e.g. when running in check
Signed-off-by: default avatarBenoît Knecht <>
(cherry picked from commit e98d9b70bd2d272385519efdefe776c4abc00f0a)
parent 650964a8
......@@ -30,6 +30,7 @@
- name: get initial keyring when it already exists
monitor_keyring: "{{ (initial_mon_key.stdout | from_json)[0]['key'] if initial_mon_key is not skipped else monitor_keyring.stdout }}"
when: initial_mon_key.stdout|default('')|length > 0 or monitor_keyring is not skipped
- name: create monitor initial keyring
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment