Permalink
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (36 sloc) 1.03 KB
---
- hosts: 127.0.0.1
tasks:
- name: make sure our less is compiled
local_action: command chdir=../ npm run less
- hosts: app
vars_files:
- vars.yml
- private/private-vars.yml
sudo: yes
user: root
tasks:
- name: update repo
git: repo={{project_repo}} version=master dest={{project_root}}
sudo: yes
sudo_user: web
notify:
- reload application
- name: copy over generated css
copy: src=../static/{{theme_to_deploy}}/css/style.css dest={{project_root}}/static/{{theme_to_deploy}}/css/style.css owner=web group=web mode=755
sudo: yes
sudo_user: web
notify:
- reload application
- name: update config
template: src=templates/config.js.j2 dest={{project_root}}/config-production.js backup=yes
sudo: yes
sudo_user: web
notify:
- reload application
- flush iptables
handlers:
- name: reload application
service: name={{project_name}} state=reloaded
- name: flush iptables
shell: iptables -F