linderhof/roles/tuwunel/tasks/main.yml
Matthias Johnson 75891c3271 initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:09:25 -07:00

30 lines
681 B
YAML

---
- name: Create Tuwunel directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: '0755'
loop:
- /srv/tuwunel
- /srv/tuwunel/data
- name: Deploy Tuwunel configuration
ansible.builtin.template:
src: tuwunel.toml.j2
dest: /srv/tuwunel/tuwunel.toml
mode: '0644'
notify: Restart tuwunel
- name: Deploy Tuwunel docker-compose file
ansible.builtin.template:
src: compose.yml.j2
dest: /srv/tuwunel/compose.yml
mode: '0644'
notify: Restart tuwunel
- name: Start Tuwunel service
community.docker.docker_compose_v2:
project_src: /srv/tuwunel
state: present
build: never
register: tuwunel_output