chore(server): do not leak secrets in ansible task names

This commit is contained in:
transcaffeine 2021-11-26 07:55:46 +01:00
parent c56b82121b
commit 63f45dc193
Signed by: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -1,6 +1,6 @@
--- ---
- name: Ensure {{ key }} is set to {{ value }} - name: Ensure {{ key }} is set to {{ '***' if ['pass', 'secret', 'key']|select('in', key) else value }}
block: block:
- name: Check value of {{ key }} - name: Check value of {{ key }}
community.docker.docker_container_exec: community.docker.docker_container_exec:
@ -12,7 +12,7 @@
check_mode: false check_mode: false
changed_when: false changed_when: false
- name: Set {{ key }} to {{ value }} - name: Set {{ key }} to {{ '***' if (['pass', 'secret', 'key']|select('in', key)) else value }}
community.docker.docker_container_exec: community.docker.docker_container_exec:
container: "{{ nextcloud_container_name }}" container: "{{ nextcloud_container_name }}"
command: "{{ nextcloud_occ_command }} config:{{ type }}:set {{ scope }} {{ entry }} --type={{ value_type }} --value={{ value }} -n" command: "{{ nextcloud_occ_command }} config:{{ type }}:set {{ scope }} {{ entry }} --type={{ value_type }} --value={{ value }} -n"