Create a 'var_secret' file in the playbooks folder and include the following data
- docker_hub_password
Run the following command from the folder containing the playbooks:
ansible-playbook - [SERVER-IP/NAME-HERE], [PLAYBOOK-NAME].yml -e BUILD_VERSION=v1.6 -e BUILD_UPDATE=false -vvv
- ansible-playbook -i my_droplet_ip, website.yml -e BUILD_VERSION=v1 -e BUILD_UPDATE=false -vvv
This will stop the current container and pull a new version and deploy as new container.
- ansible-playbook -i my_droplet_ip, website.yml -e BUILD_VERSION=v1 -e BUILD_UPDATE=true -vvv