From 833ef75273d1effe106bc7cfe3c69679747e991b Mon Sep 17 00:00:00 2001 From: Ivan Grynenko Date: Sat, 11 Jun 2016 11:41:22 +1000 Subject: [PATCH] Fixed nesting --- lemp-rhel7/roles/ansible-role-nginx/tasks/vhosts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemp-rhel7/roles/ansible-role-nginx/tasks/vhosts.yml b/lemp-rhel7/roles/ansible-role-nginx/tasks/vhosts.yml index 00ed30f..560b455 100755 --- a/lemp-rhel7/roles/ansible-role-nginx/tasks/vhosts.yml +++ b/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: