No description
- Jinja 100%
| defaults | ||
| meta | ||
| tasks | ||
| templates | ||
| .gitignore | ||
| README.md | ||
ansible-roles-knot
Task Configuration
- name: Setup knots dns
hosts: somehost
become: true
roles:
- role: knot
- role: caddy
caddy_routes:
- name: some-test
url: webui.somehost.com
srv: "{{ caddy_local_address }}:3002"
- role: firewalld
firewalld_add:
- name: public
forwards:
- port: 80
to: 8080
- port: 443
to: 8443
Deployment and Removal
systemctl --user stop container-knot.service
Deploy
ansible-playbook -i hosts site.yml --tags=firewalld,caddy,knot --limit=somehost
Remove
ansible-playbook -i hosts site.yml --tags=firewalld,caddy,knot --extra-vars "container_state=absent firewall_action=remove" --limit=somehost