delay these till the next playbook
This commit is contained in:
parent
3125ee56e2
commit
b120b8aeba
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
# abort deletion
|
|
||||||
|
|
||||||
- name: Include hosting vars
|
|
||||||
include_vars:
|
|
||||||
file: /var/lib/awx/projects/hosting/hosting_vars.yml
|
|
||||||
when: cancel_deletion|bool
|
|
||||||
no_log: True
|
|
||||||
|
|
||||||
- name: Install jq in AWX
|
- name: Install jq in AWX
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
yum:
|
yum:
|
||||||
@ -33,8 +25,6 @@
|
|||||||
validate_certs: yes
|
validate_certs: yes
|
||||||
when: cancel_deletion|bool
|
when: cancel_deletion|bool
|
||||||
|
|
||||||
# restore use of templates
|
|
||||||
|
|
||||||
- name: Grant execute permission on 'Deploy/Update a Server' job template
|
- name: Grant execute permission on 'Deploy/Update a Server' job template
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
awx.awx.tower_role:
|
awx.awx.tower_role:
|
||||||
@ -239,8 +229,6 @@
|
|||||||
validate_certs: yes
|
validate_certs: yes
|
||||||
when: (matrix_domain is defined) and (cancel_deletion|bool)
|
when: (matrix_domain is defined) and (cancel_deletion|bool)
|
||||||
|
|
||||||
# trigger cleanup
|
|
||||||
|
|
||||||
- name: Save new 'Delete Job Template' survey.json to the AWX tower, template
|
- name: Save new 'Delete Job Template' survey.json to the AWX tower, template
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
template:
|
template:
|
||||||
|
@ -293,27 +293,3 @@
|
|||||||
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: Remove Matrix server from organisations inventory
|
|
||||||
delegate_to: 127.0.0.1
|
|
||||||
awx.awx.tower_host:
|
|
||||||
name: "matrix.{{ matrix_domain }}"
|
|
||||||
description: "{{ matrix_domain }} Matrix Server"
|
|
||||||
inventory: "{{ member_id }}"
|
|
||||||
state: absent
|
|
||||||
tower_host: "https://{{ tower_host }}"
|
|
||||||
tower_oauthtoken: "{{ tower_token.stdout }}"
|
|
||||||
validate_certs: yes
|
|
||||||
when: matrix_domain is defined
|
|
||||||
|
|
||||||
- name: Remove Wireguard Server from organisations inventory
|
|
||||||
delegate_to: 127.0.0.1
|
|
||||||
awx.awx.tower_host:
|
|
||||||
name: "wireguard.{{ matrix_domain }}"
|
|
||||||
description: "{{ matrix_domain }} Wireguard Proxy"
|
|
||||||
inventory: "{{ member_id }}"
|
|
||||||
state: absent
|
|
||||||
tower_host: "https://{{ tower_host }}"
|
|
||||||
tower_oauthtoken: "{{ tower_token.stdout }}"
|
|
||||||
validate_certs: yes
|
|
||||||
when: matrix_domain is defined
|
|
||||||
|
Loading…
Reference in New Issue
Block a user