Przeglądaj źródła

Use |quote in some command calls

pull/473/head
Slavi Pantaleev 5 lat temu
rodzic
commit
9cc0c5955d
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +1
    -1
      roles/matrix-synapse/tasks/register_user.yml
  2. +2
    -2
      roles/matrix-synapse/tasks/update_user_password.yml

+ 1
- 1
roles/matrix-synapse/tasks/register_user.yml Wyświetl plik

@@ -28,4 +28,4 @@
when: "start_result.changed"

- name: Register user
shell: "{{ matrix_local_bin_path }}/matrix-synapse-register-user {{ username }} {{ password }} {{ '1' if admin == 'yes' else '0' }}"
command: "{{ matrix_local_bin_path }}/matrix-synapse-register-user {{ username|quote }} {{ password|quote }} {{ '1' if admin == 'yes' else '0' }}"

+ 2
- 2
roles/matrix-synapse/tasks/update_user_password.yml Wyświetl plik

@@ -36,8 +36,8 @@
when: "start_result.changed or postgres_start_result.changed"

- name: Generate password hash
shell: "/usr/bin/docker exec matrix-synapse /usr/local/bin/hash_password -c /data/homeserver.yaml -p {{ password }}"
shell: "/usr/bin/docker exec matrix-synapse /usr/local/bin/hash_password -c /data/homeserver.yaml -p {{ password|quote }}"
register: password_hash

- name: Update user password hash
shell: "{{ matrix_local_bin_path }}/matrix-postgres-update-user-password-hash {{ username }} '{{ password_hash.stdout }}'"
command: "{{ matrix_local_bin_path }}/matrix-postgres-update-user-password-hash {{ username|quote }} {{ password_hash.stdout|quote }}"

Ładowanie…
Anuluj
Zapisz