2017-10-29 19:25:30 +00:00
|
|
|
---
|
|
|
|
- hosts: web
|
|
|
|
|
2017-11-06 16:35:31 +00:00
|
|
|
vars_files:
|
|
|
|
- ./vars/vars.yml
|
|
|
|
|
2017-11-01 22:03:24 +00:00
|
|
|
vars_prompt:
|
|
|
|
- name: git_branch
|
|
|
|
prompt: 'Enter a branch to deploy'
|
|
|
|
default: master
|
|
|
|
private: false
|
|
|
|
|
2017-10-29 19:25:30 +00:00
|
|
|
vars:
|
2017-11-06 16:35:31 +00:00
|
|
|
ansistrano_deploy_to: "/srv/{{ server_name }}"
|
2017-10-30 00:15:20 +00:00
|
|
|
ansistrano_deploy_via: git
|
|
|
|
ansistrano_git_repo: https://github.com/opdavies/oliverdavies.uk.git
|
2017-11-06 16:35:31 +00:00
|
|
|
ansistrano_git_branch: "{{ git_branch }}"
|
2017-10-29 19:25:30 +00:00
|
|
|
ansistrano_shared_paths:
|
|
|
|
- node_modules
|
|
|
|
ansistrano_keep_releases: 3
|
|
|
|
ansistrano_allow_anonymous_stats: false
|
2017-11-02 22:21:02 +00:00
|
|
|
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
|
|
|
|
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/deploy/after-symlink.yml"
|
2017-10-29 19:25:30 +00:00
|
|
|
|
|
|
|
roles:
|
|
|
|
- carlosbuenosvinos.ansistrano-deploy
|