-
-
Save mediafigaro/f0284287b94d14bb542af11bc5d6722d to your computer and use it in GitHub Desktop.
playbook deploy ansistrano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
vars: | |
release_console_path: "{{ ansistrano_release_path.stdout }}/bin/console" | |
release_var_path: "{{ ansistrano_release_path.stdout }}/var" | |
release_logs_path: "{{ ansistrano_shared_path }}/var/logs" | |
ansistrano_deploy_from: "{{ playbook_dir }}" # Where my local project is (relative or absolute path) | |
ansistrano_deploy_to: "/var/www/deploy_production/vhost" # Base path to deploy to. | |
ansistrano_version_dir: "releases" # Releases folder name | |
ansistrano_current_dir: "current" # Softlink name. You should rarely changed it. | |
ansistrano_current_via: "symlink" # Deployment strategy who code should be deployed to current path. Options are symlink or rsync | |
ansistrano_keep_releases: 3 # Releases to keep after a new deployment. See "Pruning old releases". | |
ansistrano_allow_anonymous_stats: yes | |
ansistrano_git_repo: git@bitbucket.org:domain/project.git # Location of the git repository | |
ansistrano_git_branch: master # What version of the repository to check out. This can be the full 40-character SHA-1 hash, the literal string HEAD, a branch name, or a tag name | |
ansistrano_shared_paths: | |
- var | |
#ansistrano_shared_files: [] | |
# - .env # ? | |
environment: | |
SYMFONY_ENV: prod | |
# Hooks: custom tasks if you need them | |
#ansistrano_before_symlink_tasks_file: "{{ playbook_dir }}/<your-deployment-config>/my-before-symlink-tasks.yml" | |
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/ansible/after-symlink-shared.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" | |
roles: | |
- carlosbuenosvinos.ansistrano-deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment