Catching up Webserver config
This commit is contained in:
@@ -53,6 +53,17 @@
|
||||
mode: 0660
|
||||
register: conf
|
||||
|
||||
- name: Populate security config
|
||||
become: yes
|
||||
template:
|
||||
src: sec.conf.j2
|
||||
dest: /opt/openresty/nginx/conf/sec.conf
|
||||
owner: http
|
||||
group: http
|
||||
mode: 0660
|
||||
register: secconf
|
||||
|
||||
|
||||
- name: Ensure default openresty service file is off.
|
||||
become: yes
|
||||
service:
|
||||
@@ -62,7 +73,7 @@
|
||||
|
||||
- name: Ensure service is started
|
||||
become: yes
|
||||
when: conf.changed or confd.changed
|
||||
when: conf.changed or confd.changed or secconf.changed
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
enabled: yes
|
||||
|
Reference in New Issue
Block a user