Reconfigure vagrant

This commit is contained in:
2016-12-31 10:21:27 +03:00
parent 0d316aac6c
commit ec822f1441
12 changed files with 77 additions and 131 deletions

View File

@ -1,33 +1,6 @@
---
- name: Install Nginx
become: yes
apt: pkg=nginx state=latest
- name: Create nginx congig
become: yes
- name: Create nginx config
template:
src: homepage.j2
dest: /etc/nginx/sites-available/{{ site.domain }}
notify: restart nginx
- name: Create symlink to site
become: yes
file:
src: /etc/nginx/sites-available/{{ site.domain }}
dest: /etc/nginx/sites-enabled/{{ site.domain }}
state: link
notify: restart nginx
- name: Delete default site
become: yes
file:
path: /etc/nginx/sites-available/default
state: absent
notify: restart nginx
- name: Delete default site symlink
become: yes
file:
path: /etc/nginx/sites-enabled/default
state: absent
src: site.conf.j2
dest: /etc/nginx/sites-enabled/{{ nginx_conf_name }}
notify: restart nginx