Compare commits

...

2 Commits

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:
@ -9,9 +9,10 @@
user: "{{ nextcloud_user_info.uid }}" user: "{{ nextcloud_user_info.uid }}"
tty: yes tty: yes
register: nextcloud_current_config_entry register: nextcloud_current_config_entry
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"