2018-01-10 23:40:01 +01:00
|
|
|
---
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Setup NGINX Plus License"
|
2019-05-20 18:32:08 +02:00
|
|
|
block:
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Create SSL Directory"
|
2019-05-20 18:32:08 +02:00
|
|
|
file:
|
|
|
|
path: /etc/ssl/nginx
|
|
|
|
state: directory
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0755
|
2019-05-20 18:32:08 +02:00
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Copy NGINX Plus Certificate and License Key"
|
2019-05-20 18:32:08 +02:00
|
|
|
copy:
|
|
|
|
src: "{{ item }}"
|
|
|
|
dest: /etc/ssl/nginx
|
|
|
|
decrypt: yes
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0444
|
2020-07-08 14:55:15 +02:00
|
|
|
loop:
|
2019-05-20 18:32:08 +02:00
|
|
|
- "{{ nginx_license.certificate }}"
|
|
|
|
- "{{ nginx_license.key }}"
|
|
|
|
when: ansible_distribution != "Alpine"
|
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Alpine Linux) Setup NGINX Plus License"
|
2019-05-20 18:32:08 +02:00
|
|
|
block:
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Alpine Linux) Create APK Directory"
|
2019-05-20 18:32:08 +02:00
|
|
|
file:
|
|
|
|
path: /etc/apk
|
|
|
|
state: directory
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0755
|
2019-05-20 18:32:08 +02:00
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Alpine Linux) Copy NGINX Plus Key"
|
2019-05-20 18:32:08 +02:00
|
|
|
copy:
|
|
|
|
src: "{{ nginx_license.key }}"
|
|
|
|
dest: /etc/apk/cert.key
|
|
|
|
decrypt: yes
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0444
|
2019-05-20 18:32:08 +02:00
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Alpine Linux) Copy NGINX Plus Certificate"
|
2019-05-20 18:32:08 +02:00
|
|
|
copy:
|
|
|
|
src: "{{ nginx_license.certificate }}"
|
|
|
|
dest: /etc/apk/cert.pem
|
|
|
|
decrypt: yes
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0444
|
2019-05-20 18:32:08 +02:00
|
|
|
when: ansible_distribution == "Alpine"
|