This continuous deployment playbook assumes:
- you are using Hetzner Cloud for your servers
- you are using Cloudflare for your DNS records
- your deployments are defined with docker-compose
- run
pip install -r py-requirements.txt
- run
ansible-galaxy role install -r requirements.yml --force
- run
ansible-galaxy collection install -r requirements.yml --force
run all (create hcloud server, add cloudflare DNS record, configure ubuntu, deploy docker-compose project)
- add your server and docker-compose projects to
servers.yml
- run
export HCLOUD_API_TOKEN=...
with a valid Hetzner cloud api token - run
export CLOUDFLARE_API_TOKEN=...
with a valid Cloudflare api token - run
ansible-playbook playbook-all.yml