end play after deleting subscription in AWX

This commit is contained in:
Michael Collins 2021-08-19 17:13:34 +08:00
parent fa43d04ad7
commit b2f96df1a9

View File

@ -304,3 +304,11 @@
tower_oauthtoken: "{{ tower_token.stdout }}" tower_oauthtoken: "{{ tower_token.stdout }}"
validate_certs: yes validate_certs: yes
when: matrix_domain is defined 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