Skip to content

Commit

Permalink
[debops.owncloud] Switch double quotes to single
Browse files Browse the repository at this point in the history
This change should ensure that the strings provided by Ansible to the
shell are not interpreted by the shell by mistake - for example
a randomly generated password could contain a '$' character that could
be interpreted as a variable name.
  • Loading branch information
drybjed committed Oct 5, 2019
1 parent ede99ab commit 243a20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/debops.owncloud/tasks/ldap.yml
Expand Up @@ -33,7 +33,7 @@
when: owncloud__register_local_facts_ldap is changed

- name: Configure LDAP parameters
command: php --file "{{ owncloud__app_home }}/occ" ldap:set-config "{{ owncloud__ldap_config_id }}" "{{ item.name }}" "{{ item.value }}"
command: php --file '{{ owncloud__app_home }}/occ' ldap:set-config '{{ owncloud__ldap_config_id }}' '{{ item.name }}' '{{ item.value }}'
changed_when: False
become: True
become_user: '{{ owncloud__app_user }}'
Expand Down

0 comments on commit 243a20d

Please sign in to comment.