From a49da05cf98f32f474f1ec6fc9d1001e0797ce55 Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Tue, 24 Aug 2021 18:20:26 +0800 Subject: [PATCH] delegate locally --- roles/matrix-awx/tasks/delete_subscription_directory.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/matrix-awx/tasks/delete_subscription_directory.yml b/roles/matrix-awx/tasks/delete_subscription_directory.yml index 2f893a95..1e0bb095 100755 --- a/roles/matrix-awx/tasks/delete_subscription_directory.yml +++ b/roles/matrix-awx/tasks/delete_subscription_directory.yml @@ -12,6 +12,7 @@ dest: '/var/lib/awx/projects/hosting/delete_job_template.json' - name: Re-create '00 - Cleanup Deletion Template' job template + delegate_to: 127.0.0.1 awx.awx.tower_job_template: name: "00 - Cleanup Deletion Template" description: "Deletes the remaining '<< SUBSCRIPTION DELETION IN PROGRESS >>' job template." @@ -28,6 +29,7 @@ validate_certs: yes - name: Launch '00 - Cleanup Deletion Template' job template before ending + delegate_to: 127.0.0.1 awx.awx.tower_job_launch: job_template: "00 - Cleanup Deletion Template" tower_host: "https://{{ tower_host }}"