ansible/roles/thelounge/tasks/main.yml

34 lines
842 B
YAML

---
- name: Install NodeJS
apt:
update_cache: true
install_recommends: false
name: nodejs
register: apt_result
retries: 3
until: apt_result is succeeded
#- name: Download The Lounge packet
# get_url:
# url: https://github.com/thelounge/thelounge/releases/download/v4.2.0/thelounge_4.2.0_all.deb
# dest: /var/cache/apt/archives/thelounge_4.2.0_all.deb
# checksum: sha256:6096f992526f7ce01ea7c5aa1fb12bb013ce872f3c67f1fe11cd44f85a3fe405
# mode: 0644
- name: Install The Lounge from the deb package
apt:
deb: /var/cache/apt/archives/thelounge_4.2.0_all.deb
- name: Deploy The Lounge configuration
template:
src: config.js.j2
dest: /etc/thelounge/config.js
owner: thelounge
group: thelounge
mode: 0660
- name: Restart The Lounge
systemd:
name: thelounge
state: restarted