From b2f96df1a9b523f2b65cc5e81fa7617b3e2b74fd Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Thu, 19 Aug 2021 17:13:34 +0800 Subject: [PATCH] end play after deleting subscription in AWX --- roles/matrix-awx/tasks/delete_awx_templates.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/matrix-awx/tasks/delete_awx_templates.yml b/roles/matrix-awx/tasks/delete_awx_templates.yml index 6a3d6cf6d..81986ef73 100755 --- a/roles/matrix-awx/tasks/delete_awx_templates.yml +++ b/roles/matrix-awx/tasks/delete_awx_templates.yml @@ -304,3 +304,11 @@ tower_oauthtoken: "{{ tower_token.stdout }}" validate_certs: yes when: matrix_domain is defined + +- name: Set boolean value to exit playbook + set_fact: + end_playbook: true + +- name: End playbook if this task list is called. + meta: end_play + when: end_playbook is defined and end_playbook|bool