From 7fa3ed71a2a47af3dba2c0becea6d9957237c7e9 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 2 Jan 2022 22:31:44 +0100 Subject: [PATCH] matrix-webhooks: Fix idempotency for appservice registration creation --- roles/matrix_webhooks/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/matrix_webhooks/tasks/main.yml b/roles/matrix_webhooks/tasks/main.yml index fe6f23b..2e0b55e 100644 --- a/roles/matrix_webhooks/tasks/main.yml +++ b/roles/matrix_webhooks/tasks/main.yml @@ -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