Fixed nesting

pull/63/head
Ivan Grynenko 8 years ago
parent 07fa5384f8
commit 833ef75273
  1. 4
      lemp-rhel7/roles/ansible-role-nginx/tasks/vhosts.yml

@ -19,8 +19,8 @@
- name: Creates Nginx vhost directory
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ nginx_user }} group={{ nginx_user }} mode=0775 recurse=yes
when: nginx_vhosts|length > 0
notify:
- reload nginx
notify:
- reload nginx
- name: Remove managed vhost config file (if no vhosts are configured).
file: