Procházet zdrojové kódy

job templates cant delete themselves

pull/1266/head^2
Michael Collins před 4 roky
rodič
revize
a37e5b6d60
1 změnil soubory, kde provedl 16 přidání a 12 odebrání
  1. +16
    -12
      roles/matrix-awx/tasks/delete_awx_templates.yml

+ 16
- 12
roles/matrix-awx/tasks/delete_awx_templates.yml Zobrazit soubor

@@ -294,18 +294,6 @@
validate_certs: yes validate_certs: yes
when: matrix_domain is defined 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 - name: Remove Matrix server from organisations inventory
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
awx.awx.tower_host: awx.awx.tower_host:
@@ -330,6 +318,22 @@
validate_certs: yes validate_certs: yes
when: matrix_domain is defined 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 - name: Set boolean value to exit playbook
set_fact: set_fact:
end_playbook: true end_playbook: true


Načítá se…
Zrušit
Uložit