From 7203d4ec215c85f91d08c57b6cb954a234bc5e05 Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Thu, 19 Aug 2021 18:01:26 +0800 Subject: [PATCH] replace module only if file exists --- roles/matrix-awx/tasks/rename_variables.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/matrix-awx/tasks/rename_variables.yml b/roles/matrix-awx/tasks/rename_variables.yml index e8992bd8..73a7a6bc 100644 --- a/roles/matrix-awx/tasks/rename_variables.yml +++ b/roles/matrix-awx/tasks/rename_variables.yml @@ -5,4 +5,5 @@ path: "/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml" regexp: 'matrix_synapse_use_presence' replace: 'matrix_synapse_presence_enabled' - + args: + creates: "/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml"