delay these till the next playbook

This commit is contained in:
Michael Collins 2021-08-24 14:27:50 +08:00
parent 3125ee56e2
commit b120b8aeba
2 changed files with 0 additions and 36 deletions

View File

@ -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
delegate_to: 127.0.0.1
yum:
@ -33,8 +25,6 @@
validate_certs: yes
when: cancel_deletion|bool
# restore use of templates
- name: Grant execute permission on 'Deploy/Update a Server' job template
delegate_to: 127.0.0.1
awx.awx.tower_role:
@ -239,8 +229,6 @@
validate_certs: yes
when: (matrix_domain is defined) and (cancel_deletion|bool)
# trigger cleanup
- name: Save new 'Delete Job Template' survey.json to the AWX tower, template
delegate_to: 127.0.0.1
template:

View File

@ -293,27 +293,3 @@
tower_oauthtoken: "{{ tower_token.stdout }}"
validate_certs: yes
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