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"
|
|
|
|
|
2020-06-30 18:59:53 +02:00
|
|
|
- include_tasks: "{{ role_path }}/tasks/plus/setup-{{ ansible_os_family | lower }}.yml"
|
2020-07-30 12:47:08 +02:00
|
|
|
when: ansible_os_family == "Alpine"
|
|
|
|
or ansible_os_family == "FreeBSD"
|
|
|
|
or ansible_os_family == "Debian"
|
|
|
|
or ansible_os_family == "RedHat"
|
|
|
|
or ansible_os_family == "Suse"
|