Skip to content

Staging and production provisioning

Daniel Palomar Rodríguez edited this page Oct 23, 2017 · 3 revisions

The first time is necessary to execute the role default_user.yml to add SSH keys and create users.

ansible-playbook playbooks/default_user.yml --limit=es-staging

To provision staging or production environments is necessary to clone the repository katuma_secrets repo that allows to use the secret vars.

To execute run:

ansible-playbook playbooks/provision.yml --limit=es-staging -e '@../katuma_secrets/staging.yml' --ask-vault-pass

Make sure that the environment used in a limit option is the same as the one used in the --extra_vars (-e).