From a6b6706fdb5d6ced86c23da04a62e8bc98431dbd Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 11 Aug 2021 16:01:08 -0400 Subject: [PATCH] ceph-mon: do not log monitor keyring We don't want to display the keyring in the ansible log. Signed-off-by: Dimitri Savineau (cherry picked from commit e44075abd607648da88b4e3555353a99ecb171a6) --- roles/ceph-mon/tasks/deploy_monitors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index 1a8031203..346a56d52 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -40,6 +40,7 @@ set_fact: monitor_keyring: "{{ (initial_mon_key.stdout | from_json)[0]['key'] if _initial_mon_key_success | bool else monitor_keyring.stdout }}" when: initial_mon_key.stdout|default('')|length > 0 or monitor_keyring is not skipped + no_log: "{{ no_log_on_ceph_key_tasks }}" - name: create monitor initial keyring ceph_key: