* 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.
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
---
|
|
- name: "(Setup: Linux) Create Override Directory For NGINX Systemd Service"
|
|
file:
|
|
path: "{{ nginx_service_overridepath }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "(Setup: Linux) Create Override For NGINX Systemd Service"
|
|
template:
|
|
src: "{{ role_path }}/templates/services/nginx.service.override.conf.j2"
|
|
dest: "{{ nginx_service_overridepath }}/{{ nginx_service_overridefilename }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
when:
|
|
- not nginx_service_custom | bool
|
|
- not nginx_service_clean | bool
|
|
notify: "(Handler: All OSs) Systemd Daemon-Reload"
|
|
|
|
- name: "(Setup: Linux) Customize Override For NGINX Systemd Service"
|
|
copy:
|
|
src: "{{ nginx_service_custom_file }}"
|
|
dest: "{{ nginx_service_overridepath }}/{{ nginx_service_overridefilename }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
when:
|
|
- nginx_service_custom | bool
|
|
- not nginx_service_clean | bool
|
|
notify: "(Handler: All OSs) Systemd Daemon-Reload"
|
|
|
|
- name: "(Setup: Linux) Remove Override For NGINX Systemd Service"
|
|
file:
|
|
path: "{{ nginx_service_overridepath }}"
|
|
state: absent
|
|
when: nginx_service_clean | bool
|
|
notify: "(Handler: All OSs) Systemd Daemon-Reload"
|