Run nginx install tasks before configs are copied
This commit is contained in:
parent
adcc82103f
commit
63abece6a0
|
@ -5,6 +5,9 @@
|
||||||
apt: name={{ item }} state=latest update_cache=yes
|
apt: name={{ item }} state=latest update_cache=yes
|
||||||
with_items:
|
with_items:
|
||||||
- nginx
|
- nginx
|
||||||
|
- name: Run nginx install tasks
|
||||||
|
include_tasks: install.yml
|
||||||
|
when: install is defined
|
||||||
- name: Remove default nginx config in sites-enabled
|
- name: Remove default nginx config in sites-enabled
|
||||||
file:
|
file:
|
||||||
path: /etc/nginx/sites-enabled/default
|
path: /etc/nginx/sites-enabled/default
|
||||||
|
@ -18,6 +21,3 @@
|
||||||
src: /etc/nginx/sites-available/{{ LOCAL_DOMAIN }}.conf
|
src: /etc/nginx/sites-available/{{ LOCAL_DOMAIN }}.conf
|
||||||
dest: /etc/nginx/sites-enabled/{{ LOCAL_DOMAIN }}.conf
|
dest: /etc/nginx/sites-enabled/{{ LOCAL_DOMAIN }}.conf
|
||||||
state: link
|
state: link
|
||||||
- name: Run nginx install tasks
|
|
||||||
include_tasks: install.yml
|
|
||||||
when: install is defined
|
|
||||||
|
|
Loading…
Reference in New Issue