From 725150565a8231beba29a500912123aacbbf74d6 Mon Sep 17 00:00:00 2001 From: PC-Admin Date: Thu, 21 Oct 2021 09:47:07 +0800 Subject: [PATCH] GoMatrixHosting v0.6.3 hotfix2 --- roles/matrix-common-after/tasks/awx_post.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/roles/matrix-common-after/tasks/awx_post.yml b/roles/matrix-common-after/tasks/awx_post.yml index e98afb60..4fbd5e55 100644 --- a/roles/matrix-common-after/tasks/awx_post.yml +++ b/roles/matrix-common-after/tasks/awx_post.yml @@ -63,19 +63,15 @@ mode: '0770' when: awx_customise_base_domain_website is defined -- name: Check if Discord AppService invite file exists - stat: - path: /matrix/appservice-discord/config/invite_link - register: awx_discord_appservice_link_file - when: ( awx_appservice_discord_admin_user is defined ) - - name: Collect Discord AppService bot invite link if file exists command: cat /matrix/appservice-discord/config/invite_link register: awx_discord_appservice_link - when: ( awx_discord_appservice_link_file.stat.exists == true ) and ( awx_appservice_discord_admin_user is defined ) + when: awx_appservice_discord_admin_user is defined + args: + removes: /matrix/appservice-discord/config/invite_link - name: Print Discord AppService bot link for user debug: msg: "{{ awx_discord_appservice_link.stdout }}" - when: awx_discord_appservice_link is defined + when: awx_discord_appservice_link.stdout is defined