2018-08-01 20:40:35 +02:00
|
|
|
---
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: All OSs) Set NGINX Plus License State"
|
|
|
|
set_fact:
|
|
|
|
nginx_license_status: absent
|
|
|
|
|
|
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Delete NGINX Plus License"
|
2018-08-01 20:40:35 +02:00
|
|
|
file:
|
|
|
|
path: /etc/ssl/nginx
|
|
|
|
state: absent
|
2019-12-11 21:45:12 +01:00
|
|
|
when: ansible_distribution != "Alpine"
|
|
|
|
|
|
|
|
- name: "(Setup: Alpine Linux) Delete NGINX Plus License"
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- /etc/apk/cert.key
|
|
|
|
- /etc/apk/cert.pem
|
|
|
|
when: ansible_distribution == "Alpine"
|
|
|
|
|
|
|
|
- import_tasks: setup-alpine.yml
|
|
|
|
when: ansible_os_family == "Alpine"
|
|
|
|
|
|
|
|
- import_tasks: setup-bsd.yml
|
|
|
|
when: ansible_os_family == "FreeBSD"
|
|
|
|
|
|
|
|
- import_tasks: setup-debian.yml
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
|
|
- import_tasks: setup-redhat.yml
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
- import_tasks: setup-suse.yml
|
|
|
|
when: ansible_os_family == "Suse"
|