From ffe01c7ff55f3e98ff1424775ed46530556b9556 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 b988f764ee..847c2b8133 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: