Run nginx install tasks before configs are copied

This commit is contained in:
staticsafe 2019-01-12 15:16:28 -05:00
parent adcc82103f
commit 63abece6a0
1 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,9 @@
apt: name={{ item }} state=latest update_cache=yes
with_items:
- nginx
- name: Run nginx install tasks
include_tasks: install.yml
when: install is defined
- name: Remove default nginx config in sites-enabled
file:
path: /etc/nginx/sites-enabled/default
@ -18,6 +21,3 @@
src: /etc/nginx/sites-available/{{ LOCAL_DOMAIN }}.conf
dest: /etc/nginx/sites-enabled/{{ LOCAL_DOMAIN }}.conf
state: link
- name: Run nginx install tasks
include_tasks: install.yml
when: install is defined