Skip to content

Commit

Permalink
don't display passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed Feb 28, 2024
1 parent 1f25a82 commit 2c7680b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/add_kolab_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions tasks/kolab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions tasks/kolab_auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 2c7680b

Please sign in to comment.