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
|
|
|
|
|
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
|
|
|
|
with_items:
|
|
|
|
- "{{ 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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
when: ansible_distribution == "Alpine"
|