Explorar el Código

delay these till the next playbook

pull/1266/head^2
Michael Collins hace 4 años
padre
commit
b120b8aeba
Se han modificado 2 ficheros con 0 adiciones y 36 borrados
  1. +0
    -12
      roles/matrix-awx/tasks/abort_deletion.yml
  2. +0
    -24
      roles/matrix-awx/tasks/delete_awx_templates.yml

+ 0
- 12
roles/matrix-awx/tasks/abort_deletion.yml Ver fichero

@@ -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:


+ 0
- 24
roles/matrix-awx/tasks/delete_awx_templates.yml Ver fichero

@@ -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

Cargando…
Cancelar
Guardar