dotfiles/roles/thelounge/tasks/main.yml

28 lines
662 B
YAML
Raw Normal View History

- 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"