2020-09-15 21:27:06 +02:00
|
|
|
---
|
2020-11-05 15:37:40 +01:00
|
|
|
- name: Set NGINX Plus license state to absent
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.set_fact:
|
2020-09-15 21:27:06 +02:00
|
|
|
nginx_license_status: absent
|
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (Debian/Red Hat/SLES OSs) Delete NGINX Plus license
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.file:
|
2020-09-15 21:27:06 +02:00
|
|
|
path: /etc/ssl/nginx
|
|
|
|
state: absent
|
|
|
|
when: ansible_facts['distribution'] != "Alpine"
|
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (Alpine Linux) Delete NGINX Plus license
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.file:
|
2020-09-15 21:27:06 +02:00
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- /etc/apk/cert.key
|
|
|
|
- /etc/apk/cert.pem
|
|
|
|
when: ansible_facts['distribution'] == "Alpine"
|
|
|
|
|
2020-11-05 15:37:40 +01:00
|
|
|
- name: Remove NGINX Plus repository data
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/plus/install-{{ ansible_facts['os_family'] | lower }}.yml"
|