ansible-role-nginx/tasks/plus/remove-license.yml

23 lines
559 B
YAML
Raw Normal View History

2020-09-15 21:27:06 +02:00
---
2020-09-19 17:32:17 +02:00
- name: Set NGINX Plus license state
2020-09-15 21:27:06 +02:00
set_fact:
nginx_license_status: absent
2020-09-19 17:32:17 +02:00
- name: (Debian/Red Hat/SLES OSs) Delete NGINX Plus license
2020-09-15 21:27:06 +02:00
file:
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
2020-09-15 21:27:06 +02:00
file:
path: "{{ item }}"
state: absent
loop:
- /etc/apk/cert.key
- /etc/apk/cert.pem
when: ansible_facts['distribution'] == "Alpine"
2020-09-19 17:32:17 +02:00
- name: Delete NGINX Plus repository data
2020-09-15 21:27:06 +02:00
include_tasks: "{{ role_path }}/tasks/plus/install-plus.yml"