No description
| defaults | ||
| meta | ||
| tasks | ||
| .gitignore | ||
| README.md | ||
ansible-roles-trilium
- https://github.com/TriliumNext/Trilium/blob/main/docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md
- https://github.com/TriliumNext/Trilium/blob/main/docker-compose.rootless.yml
- https://hub.docker.com/r/triliumnext/notes/tags
Task Configuration
- name: Setup trilium
hosts: somehost
become: true
roles:
- role: trilium
trilium_sites:
- name: some-test
url: somehost.com
srv: "{{ trilium_local_address }}:8080"
- role: firewalld
firewalld_services:
- http
- https
firewalld_forwards:
- port: 80
to: 8080
- port: 443
to: 8443
- port: 443
to: 8443
proto: udp
Deployment and Removal
Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd
systemctl --user stop container-trilium.service
Deploy
ansible-playbook -i hosts site.yml --tags=firewalld,trilium --limit=somehost
Remove
ansible-playbook -i hosts site.yml --tags=firewalld,trilium --extra-vars "container_state=absent firewall_action=remove" --limit=somehost