A simple Role to deploy an application.
deploy_path
: path to deploy todeploy_owner
: owner of the deploy directory / filesdeploy_group
: group of the deploy directory / filesdeploy_release_file
: path to an archive with the release to deploydeploy_shared_folders
: list with folders that are shared between releases e.g. sessions, logs, uploads
- hosts: servers
roles:
- role: basserselim.deploy
deploy_path: "/srv/app"
deploy_release_file: "../release.tar.gz"
deploy_owner: "www-data"
deploy_group: "www-data"
deploy_shared_folders:
- path: "data/uploads"
src: "uploads"
# creates the direcotry /srv/app/shared/uploads if not exisiting and
# creates a link from /srv/app/current/data/uploads to /srv/app/shared/uploads
BSD