Testing Ansible
collections | ||
compose | ||
files | ||
playbooks | ||
templates | ||
.gitignore | ||
ansible.cfg | ||
inventory.yml | ||
playbook.yaml | ||
README.md | ||
requirements.yml | ||
secrets.enc |
Testing ansible
ansible-galaxy install -r requirements.yml -p roles/galaxy/ --force
ansible-playbook playbook.yaml # Initialize
ansible-playbook -i inventory.yml -e @secrets.enc --ask-vault-pass playbooks/caddy.yaml # Caddy
ansible-playbook -i inventory.yml -e @secrets.enc --ask-vault-pass playbooks/docker.yaml # Docker Compose
To add secrets: ansible-vault edit secrets.enc