|
@@ -2,6 +2,12 @@
|
|
|
action: ${ansible_pkg_mgr} pkg=nginx state=installed update_cache=yes
|
|
|
when_boolean: ${with_nginx}
|
|
|
|
|
|
+- name: Install nginx default file configuration
|
|
|
+ action: template src=nginx/default.j2 dest=/etc/default/nginx owner=root group=root mode=0644
|
|
|
+ notify:
|
|
|
+ - Restart nginx
|
|
|
+ when_boolean: ${with_nginx}
|
|
|
+
|
|
|
- name: Install nginx status configuration
|
|
|
action: template src=nginx/status.conf.j2 dest=/etc/nginx/conf.d/status.conf owner=root group=root mode=0644
|
|
|
notify:
|