mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-07 16:12:43 +00:00
job templates cant delete themselves
This commit is contained in:
parent
14effd5e2b
commit
a37e5b6d60
|
@ -294,18 +294,6 @@
|
|||
validate_certs: yes
|
||||
when: matrix_domain is defined
|
||||
|
||||
- name: Remove '<< SUBSCRIPTION DELETION IN PROGRESS >>' job template
|
||||
delegate_to: 127.0.0.1
|
||||
awx.awx.tower_job_template:
|
||||
name: "0 - {{ subscription_id }} - << SUBSCRIPTION DELETION IN PROGRESS >>"
|
||||
job_type: run
|
||||
project: "{{ member_id }} - Matrix Docker Ansible Deploy"
|
||||
playbook: setup.yml
|
||||
state: absent
|
||||
tower_host: "https://{{ tower_host }}"
|
||||
tower_oauthtoken: "{{ tower_token.stdout }}"
|
||||
validate_certs: yes
|
||||
|
||||
- name: Remove Matrix server from organisations inventory
|
||||
delegate_to: 127.0.0.1
|
||||
awx.awx.tower_host:
|
||||
|
@ -330,6 +318,22 @@
|
|||
validate_certs: yes
|
||||
when: matrix_domain is defined
|
||||
|
||||
#- name: Remove '<< SUBSCRIPTION DELETION IN PROGRESS >>' job template
|
||||
# delegate_to: 127.0.0.1
|
||||
# awx.awx.tower_job_template:
|
||||
# name: "0 - {{ subscription_id }} - << SUBSCRIPTION DELETION IN PROGRESS >>"
|
||||
# job_type: run
|
||||
# project: "{{ member_id }} - Matrix Docker Ansible Deploy"
|
||||
# playbook: setup.yml
|
||||
# state: absent
|
||||
# tower_host: "https://{{ tower_host }}"
|
||||
# tower_oauthtoken: "{{ tower_token.stdout }}"
|
||||
# validate_certs: yes
|
||||
|
||||
# make new extra vars file
|
||||
# remake 'delete delete playbook'
|
||||
# launch it
|
||||
|
||||
- name: Set boolean value to exit playbook
|
||||
set_fact:
|
||||
end_playbook: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user