matrix-docker-ansible-deploy/roles/matrix-awx/tasks/delete_mailgun.yml

23 lines
639 B
YAML
Raw Normal View History

2021-08-18 13:07:44 +00:00
- name: Include matrix server variables from matrix_vars.yml
2021-08-20 01:35:12 +00:00
delegate_to: 127.0.0.1
2021-08-18 13:07:44 +00:00
include_vars: "{{ item }}"
with_first_found:
- files:
- /var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml
skip: true
no_log: True
2021-08-20 01:35:12 +00:00
- name: Install curl in AWX
delegate_to: 127.0.0.1
yum:
name: curl
state: latest
2021-08-18 13:07:44 +00:00
- name: Delete MailGun SMTP login
2021-08-20 01:35:12 +00:00
delegate_to: 127.0.0.1
2021-08-18 13:07:44 +00:00
shell: |
curl -s --user 'api:{{ mg_private_api_key }}' -X DELETE https://{{ mg_api_url }}/v3/domains/{{ mg_sender_domain }}/credentials/{{ matrix_domain }}
when: matrix_domain is defined
2021-08-20 01:35:12 +00:00
no_log: True