]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: do not log monitor keyring
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 11 Aug 2021 20:01:08 +0000 (16:01 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Aug 2021 11:31:12 +0000 (13:31 +0200)
We don't want to display the keyring in the ansible log.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit e44075abd607648da88b4e3555353a99ecb171a6)

roles/ceph-mon/tasks/deploy_monitors.yml

index b988f764eed2248f4c06e33a2e2aff32eddf16ab..847c2b8133ce017de6b968b089cde4c0fd722bc8 100644 (file)
@@ -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: