39 lines
2.1 KiB
YAML
39 lines
2.1 KiB
YAML
- name: "App Install"
|
|
hosts: "all"
|
|
become: true
|
|
become_user: www-data
|
|
|
|
vars:
|
|
proxy: "http://proxy.univ-lyon1.fr:3128/"
|
|
ansistrano_deploy_from: "{{ playbook_dir }}/" # Where my local project is (relative or absolute path)
|
|
ansistrano_deploy_to: "/var/www/{{ scope }}/projectsend" # Base path to deploy to.
|
|
ansistrano_keep_releases: 2 # Releases to keep after a new deployment. See "Pruning old releases".
|
|
|
|
ansistrano_shared_paths:
|
|
- upload
|
|
|
|
# Shared paths and basedir shared files creation.
|
|
# By default the shared paths directories and base directories for shared files are created automatically if not exists. But in some scenarios those paths could be symlinks to another directories in the filesystem, and the deployment process would fails. With these variables you can disable the involved tasks. If you have two or three shared paths, and don't need creation only for some of them, you always could disable the automatic creation and add a custom task in a hook.
|
|
ansistrano_ensure_shared_paths_exist: true
|
|
ansistrano_ensure_basedirs_shared_files_exist: true
|
|
|
|
# Deployment strategy - method used to deliver code. Options are copy, download, git, rsync, rsync_direct, svn, or s3.
|
|
ansistrano_deploy_via: git
|
|
# Copy, download and s3 have an optional step to unarchive the downloaded file which can be used by adding _unarchive.
|
|
# The rsync_direct strategy omits a file copy on the target offering a slight speed increase if you are deploying to shared hosts, are experiancing bad file-performance, or serve static assets from the same host you deploy your app to and rsync many files.
|
|
# You can check all the options inside tasks/update-code folder!
|
|
|
|
ansistrano_allow_anonymous_stats: false
|
|
|
|
ansistrano_git_repo: "https://github.com/projectsend/projectsend.git"
|
|
ansistrano_git_branch: master
|
|
|
|
# Hooks: custom tasks if you need them
|
|
ansistrano_after_update_code_tasks_file: "{{ playbook_dir }}/ansistrano_tasks/after_update.yml"
|
|
environment:
|
|
http_proxy: "{{ proxy }}"
|
|
https_proxy: "{{ proxy }}"
|
|
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
|
|
|
|
roles:
|
|
- ansistrano.deploy
|