diff --git a/tasks/main.yml b/tasks/main.yml index e124acf..a436a28 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,6 +4,7 @@ - name: Install Nginx apt: pkg=nginx state=installed update_cache=true + register: nginxinstall notify: - Start Nginx @@ -42,15 +43,15 @@ - Reload Nginx #- name: Create Web root -# when: nginxinstalled|success +# when: nginxinstall|success # file: dest=/var/www/{{ domain }}/public mode=775 state=directory owner=www-data group=www-data # ignore_errors: yes # notify: # - Reload Nginx #- name: Web Root Permissions -# when: nginxinstalled|success +# when: nginxinstall|success # file: dest=/var/www/{{ domain }} mode=775 state=directory owner=www-data group=www-data recurse=yes # ignore_errors: yes # notify: -# - Reload Nginx \ No newline at end of file +# - Reload Nginx