equal
deleted
inserted
replaced
|
1 # build and deployment |
|
2 |
|
3 - install Ansible |
|
4 - Create a new deployment profile: |
|
5 - add a new deplyment host list by creating a `hosts/hosts.<profile>` file: |
|
6 - `cp hosts/hosts.tmpl hosts/hosts.<profile>` |
|
7 - define the profile vars: `cp group_vars/group_vars.yml.tmpl group_vars/<profile>.yml`, customize it |
|
8 - create the necessary host vars in `host_vars/<machine>/base.yml`. Use ansible vaults to edit them and do not expose any secret. |
|
9 - deploy with the command `deploy.sh`: `./deploy.sh <profile> <version>` |