Install Instructions (using pip)
- create
terraform/terraform.tfvars
(fromterraform/terraform.tfvars.dist
) and set API Token - create
ansible/vars/main.yml
(fromansible/vars/main.yml.dist
) and set API Token, email for Let's Encrypt, network name for docker and domain - create
ansible/inventory/digitaloceanmain.yml
(fromansible/inventory/digitalocean.yml.dist
) and set API Token - add applications
.env
toansible/playbooks/roles/community/files/
IMPORTANT: if infrastructure still exist get terraform.tfstate
from the machine previously applied the terraform configuration and paste it to the terraform/
folder
terraform apply
- Create infrastructure or apply changes
ansible-playbook -i inventory/digitalocean.yml playbooks/site.yml -u root
- Run playbooks on hosts