Add basic deployment script

This commit is contained in:
Oliver Davies 2019-01-22 20:08:31 +00:00
parent 9e5db60b13
commit d1251ca92c

View file

@ -0,0 +1,19 @@
---
- hosts: dransible
become: true
tasks:
- name: Creating project directory
file:
path: /var/www/app
state: directory
- name: Uploading application
synchronize:
src: ../../../../
dest: /var/www/app
- name: Installing Composer dependencies
composer:
command: install
working_dir: /var/www/app