bf2916fc55
* Explicitly define `mode` in relevant tasks. * Explicitly define the `nginx` `apt_repository` filename in Debian based distros. * Building OpenSSL from source should now work properly in CentOS 8.
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
---
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Setup NGINX Plus License"
|
|
block:
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Create SSL Directory"
|
|
file:
|
|
path: /etc/ssl/nginx
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "(Setup: All OSs Besides Alpine Linux) Copy NGINX Plus Certificate and License Key"
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: /etc/ssl/nginx
|
|
decrypt: yes
|
|
mode: 0444
|
|
loop:
|
|
- "{{ nginx_license.certificate }}"
|
|
- "{{ nginx_license.key }}"
|
|
when: ansible_distribution != "Alpine"
|
|
|
|
- name: "(Setup: Alpine Linux) Setup NGINX Plus License"
|
|
block:
|
|
- name: "(Setup: Alpine Linux) Create APK Directory"
|
|
file:
|
|
path: /etc/apk
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "(Setup: Alpine Linux) Copy NGINX Plus Key"
|
|
copy:
|
|
src: "{{ nginx_license.key }}"
|
|
dest: /etc/apk/cert.key
|
|
decrypt: yes
|
|
mode: 0444
|
|
|
|
- name: "(Setup: Alpine Linux) Copy NGINX Plus Certificate"
|
|
copy:
|
|
src: "{{ nginx_license.certificate }}"
|
|
dest: /etc/apk/cert.pem
|
|
decrypt: yes
|
|
mode: 0444
|
|
when: ansible_distribution == "Alpine"
|