|
|
@ -17,7 +17,7 @@ |
|
|
|
- reload nginx |
|
|
|
- reload nginx |
|
|
|
|
|
|
|
|
|
|
|
- name: Creates Nginx vhost directory |
|
|
|
- name: Creates Nginx vhost directory |
|
|
|
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ nginx_user }} group={{ nginx_user }} mode=0775 recurse=yes |
|
|
|
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ php_fpm_pool_user }} group={{ php_fpm_pool_group }} mode=0755 recurse=yes |
|
|
|
when: nginx_vhosts|length > 0 |
|
|
|
when: nginx_vhosts|length > 0 |
|
|
|
notify: |
|
|
|
notify: |
|
|
|
- reload nginx |
|
|
|
- reload nginx |
|
|
|