2016-02-11 21:49:00 +01:00
|
|
|
---
|
|
|
|
- name: Deploy Extranet
|
|
|
|
hosts: all
|
|
|
|
remote_user: deploy
|
|
|
|
become: no
|
|
|
|
vars:
|
|
|
|
# Specific
|
|
|
|
project: extranet
|
2016-04-20 11:06:05 +02:00
|
|
|
project_tree: master
|
2016-02-16 10:39:27 +01:00
|
|
|
webservice_uri: "http://webservice.sd.lan"
|
2016-02-11 21:49:00 +01:00
|
|
|
# Always add a trailing / if you want rsync the content of the directory
|
2017-02-20 09:39:42 +01:00
|
|
|
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
|
|
|
ansistrano_deploy_to: "/home/vhosts/{{project}}"
|
2016-02-11 21:49:00 +01:00
|
|
|
ansistrano_version_dir: releases
|
|
|
|
ansistrano_current_dir: current
|
|
|
|
ansistrano_shared_paths: []
|
2016-08-03 11:48:06 +02:00
|
|
|
ansistrano_keep_releases: 4
|
2016-02-11 21:49:00 +01:00
|
|
|
ansistrano_deploy_via: rsync
|
2016-03-03 11:51:47 +01:00
|
|
|
ansistrano_allow_anonymous_stats: no
|
2016-02-11 21:49:00 +01:00
|
|
|
# Variables used in the rsync deployment strategy
|
|
|
|
ansistrano_rsync_extra_params: ""
|
|
|
|
ansistrano_rsync_set_remote_user: yes
|
|
|
|
# Variables used in the Git deployment strategy
|
|
|
|
#ansistrano_git_repo: ssh://git@192.168.78.249:10022/SCORES/flux.git
|
|
|
|
#ansistrano_git_branch: master
|
|
|
|
#ansistrano_git_identity_key_path: ""
|
|
|
|
# Hooks: custom tasks if you need them
|
2017-03-07 14:52:26 +01:00
|
|
|
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
2017-02-20 09:39:42 +01:00
|
|
|
ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
|
|
|
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
|
|
|
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
|
|
|
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
|
|
|
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
|
|
|
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
|
|
|
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
|
|
|
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
|
|
|
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
2016-02-11 21:49:00 +01:00
|
|
|
roles:
|
|
|
|
- { role: carlosbuenosvinos.ansistrano-deploy }
|