Add basic deployment script
This commit is contained in:
parent
9e5db60b13
commit
d1251ca92c
19
ansible/deploying/1-basic/main.yml
Normal file
19
ansible/deploying/1-basic/main.yml
Normal 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
|
Loading…
Reference in a new issue