Просмотр исходного кода

job templates cant delete themselves

pull/1266/head^2
Michael Collins 4 лет назад
Родитель
Сommit
a37e5b6d60
1 измененных файлов: 16 добавлений и 12 удалений
  1. +16
    -12
      roles/matrix-awx/tasks/delete_awx_templates.yml

+ 16
- 12
roles/matrix-awx/tasks/delete_awx_templates.yml Просмотреть файл

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


Загрузка…
Отмена
Сохранить