]> git-server-git.apps.pok.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:30:50 +0000 (13:30 +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 3c66dcb1994a941b5430c1853edf4a7e721652ef..3c1ceaca6fc1d2c91a16f8ad1cc9edbf36b8b145 100644 (file)
@@ -41,6 +41,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: