From 2c7680bcc9179211f8023291b11b4e24c2c7a572 Mon Sep 17 00:00:00 2001 From: Akos Balla Date: Wed, 28 Feb 2024 02:09:29 +0100 Subject: [PATCH] don't display passwords --- tasks/add_kolab_user.yml | 3 +++ tasks/kolab.yml | 1 + tasks/kolab_auth.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/tasks/add_kolab_user.yml b/tasks/add_kolab_user.yml index f19811a..1efc950 100644 --- a/tasks/add_kolab_user.yml +++ b/tasks/add_kolab_user.yml @@ -17,6 +17,7 @@ register: kolab_user_found failed_when: kolab_user_found.json.status != 'OK' and kolab_user_found.json.result | length > 0 changed_when: kolab_user_found.json.status == 'OK' and kolab_user_found.json.result | length == 0 + no_log: true - name: Display Kolab user find results ansible.builtin.debug: var: kolab_user_found.json.result @@ -55,6 +56,7 @@ Cookie: "{{ kolab_api_auth.cookies_string }}" register: kolab_user_add failed_when: kolab_user_add.json.status != 'OK' + # no_log: true - name: "Update Kolab user {{ user.name }}" # TODO: find the needed variables when: kolab_user_found.changed @@ -74,3 +76,4 @@ Cookie: "{{ kolab_api_auth.cookies_string }}" register: kolab_user_edit failed_when: kolab_user_edit.json.status != 'OK' + # no_log: true diff --git a/tasks/kolab.yml b/tasks/kolab.yml index fbb343b..6a7b890 100644 --- a/tasks/kolab.yml +++ b/tasks/kolab.yml @@ -8,6 +8,7 @@ register: kolab_setup failed_when: kolab_setup.rc != 0 and "existing" not in kolab_setup.stderr changed_when: kolab_setup.rc == 0 + no_log: true tags: - configuration diff --git a/tasks/kolab_auth.yml b/tasks/kolab_auth.yml index 2749cba..0f8cf8a 100644 --- a/tasks/kolab_auth.yml +++ b/tasks/kolab_auth.yml @@ -8,5 +8,6 @@ username: "cn=Directory Manager" password: "{{ ldap_admin_password }}" return_content: true + no_log: true register: kolab_api_auth failed_when: kolab_api_auth.json.status != 'OK'