An Ansible role that deploy your application just the same way like Capistrano.
An Ansible role that deploy your application just the same way like Capistrano.
Capistrano is software written in Ruby, which allows you to deploy your application on remote node.
Here is how it works:
/shared
, /repository
and /deployments
./repository
directory there is a copy of your source repo (GIT/SVN etc.)/deployments
dir./deployments/20171108123453
)./shared
directory into the new deployment directory./current
to point to the latest deployment from /deployments
There aren’t any requirements for this role.
Available variables are listed below, along with default values (see defaults/main.yml
).
deployment_default_workdir: ""
deployment_default_owner: ""
deployment_default_group: ""
deployment_keep_releases: 5
deployment_projects: []
deployment_projects: []
- name: project.name
repository: git@github.com:some/repo
deployment_projects: []
- name: project.name
workdir: /var/www
repository: git@github.com:some/repo
version: "HEAD"
owner: apache
group: apache
shared_files:
- any/path/to/mount/in/dir/deployment/dir
ssh_opts: ""
keep_releases: 2
None.
- hosts: webservers
vars_files:
- vars/main.yml
roles:
- { role: MWojtowicz.deployment }
MIT / BSD
This role was created in 2017 by Michal Wojtowicz.