2024-11-14 15:56:22 +01:00
|
|
|
- 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
|
|
|
|
|
2024-11-18 15:35:55 +01:00
|
|
|
- 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
|
|
|
|
|
2024-11-14 15:56:22 +01:00
|
|
|
- name: Enable the TheLounge quadlet
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
daemon_reload: true
|
|
|
|
enabled: true
|
|
|
|
name: thelounge.service
|
|
|
|
state: "started"
|