feat(thelounge): add quadlet deployment

Related to #51

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-11-14 15:56:22 +01:00
parent 5057b9fed1
commit cde2c78a0e
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,17 @@
- 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: Enable the TheLounge quadlet
ansible.builtin.systemd_service:
daemon_reload: true
enabled: true
name: thelounge.service
state: "started"

View file

@ -0,0 +1,16 @@
[Unit]
Description=The Lounge
[Container]
ContainerName=thelounge
Image=ghcr.io/thelounge/thelounge:latest
PublishPort=9000:9000
Volume=thelounge-data:/var/opt/thelounge
[Service]
Restart=always
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,2 @@
[Volume]
VolumeName=thelounge-data