Add ansible stuff
This commit is contained in:
parent
bbb4a9c666
commit
23fcf88ad9
21 changed files with 319 additions and 0 deletions
24
tools/ansible/deploy.yml
Normal file
24
tools/ansible/deploy.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- hosts: webservers
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- ansistrano.deploy
|
||||
|
||||
vars_files:
|
||||
- vars/provision_vault.yml
|
||||
- vars/deploy_vault.yml
|
||||
- vars/vars.yml
|
||||
- vars/provision_vars.yml
|
||||
- vars/deploy_vars.yml
|
||||
|
||||
vars:
|
||||
ansistrano_deploy_via: "rsync"
|
||||
ansistrano_deploy_from: "{{ playbook_dir }}/../../"
|
||||
ansistrano_deploy_to: "{{ project_deploy_path }}"
|
||||
ansistrano_keep_releases: 5
|
||||
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/deploy/after-symlink.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{ playbook_dir }}/deploy/after-update-code.yml"
|
||||
ansistrano_shared_paths:
|
||||
- "{{ project_web_root }}/sites/default/files"
|
||||
Loading…
Add table
Add a link
Reference in a new issue