diff --git a/group_vars/all.yml b/group_vars/all.yml index a13559b..d8aae3e 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -121,7 +121,7 @@ php_upload_max_filesize: "1024M" php_max_input_vars: "4000" # Interaction with which web server -php_webserver_daemon: "nginx" +php_webserver_daemon: "httpd" php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING" diff --git a/roles/ansible-role-nginx/tasks/vhosts.yml b/roles/ansible-role-nginx/tasks/vhosts.yml index 6af3173..73a8c41 100755 --- a/roles/ansible-role-nginx/tasks/vhosts.yml +++ b/roles/ansible-role-nginx/tasks/vhosts.yml @@ -1,4 +1,8 @@ --- +- name: Creates Nginx conf directories + file: path={{ nginx_vhost_path }} state=directory owner={{ root }} group={{ root }} mode=0755 recurse=yes + when: nginx_vhosts|length > 0 + - name: Remove default nginx vhost config file (if configured). file: path: "{{ nginx_default_vhost_path }}"