matrix-webhooks: Fix idempotency for appservice registration creation

This commit is contained in:
saibotk 2022-01-02 22:31:44 +01:00
parent 9448ec9995
commit 7fa3ed71a2
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -81,12 +81,12 @@
become: true
- name: Generate webhooks registration
command: 'docker-compose run appservice-webhooks node index.js -r \
ansible.builtin.command:
cmd: 'docker-compose run appservice-webhooks node index.js -r \
-f /data/appservice-registration-webhooks.yaml \
-u "https://{{ matrix_webhooks_domain }}" -c /data/config.yaml'
args:
chdir: "{{ matrix_webhooks_install_location }}"
creates: "{{ matrix_webhooks_install_location }}/appservice-registration-webhooks.yaml"
creates: "{{ matrix_webhooks_data_location }}/appservice-registration-webhooks.yaml"
become: true
- name: Compose matrix-webhooks