Simplify Ansible code, remove old files

This commit is contained in:
Oliver Davies 2018-04-18 00:00:35 +01:00
parent 65c70a6158
commit ec4dbfd481
13 changed files with 174 additions and 440 deletions

View file

@ -1,17 +0,0 @@
---
- name: Install Composer dependencies
composer:
command: install
working_dir: "{{ ansistrano_release_path.stdout }}"
- name: Generate the site once without assets
command: composer run prod chdir={{ ansistrano_release_path.stdout }}
- name: Install Node dependencies
command: yarn install chdir={{ ansistrano_release_path.stdout }}
- name: Generate assets
command: yarn run encore production chdir={{ ansistrano_release_path.stdout }}
- name: Generate the site, including assets
command: composer run prod chdir={{ ansistrano_release_path.stdout }}

View file

@ -1,3 +0,0 @@
---
- name: Reload nginx
service: name=nginx state=reloaded