dotfiles/roles/thelounge/tasks/main.yml
Matej Focko 4fa3f26d43
fix(thelounge): handle reverse proxy
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-11-18 15:35:55 +01:00

27 lines
662 B
YAML

- name: Install the TheLounge quadlets
ansible.builtin.template:
src: "templates/{{ item }}"
dest: "/etc/containers/systemd/{{ item }}"
mode: 0644
owner: root
group: root
loop:
- thelounge.container
- thelounge.volume
- name: Install the reverse proxy config
ansible.builtin.template:
src: templates/nginx.conf
dest: "/etc/nginx/conf.d/thelounge.conf"
mode: 0644
owner: root
group: root
when: thelounge_reverse_proxy
notify: Restart nginx
- name: Enable the TheLounge quadlet
ansible.builtin.systemd_service:
daemon_reload: true
enabled: true
name: thelounge.service
state: "started"