33 lines
1003 B
YAML
33 lines
1003 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/v{{ thelounge.version.short }}/thelounge_{{ thelounge.version.long }}_all.deb
|
|
dest: /var/cache/apt/archives/thelounge_{{ thelounge.version.long }}_all.deb
|
|
checksum: sha512:10d17c199fef595c46ba55f36ab7aa0a7469448603482eb780284e05532f5d69302d47bdc9c558badc30b0a026767a24b7065a4fe8d7c865f1737b0041420208
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Install The Lounge from the deb package
|
|
apt:
|
|
deb: /var/cache/apt/archives/thelounge_{{ thelounge.version.long }}_all.deb
|
|
notify: Restart The Lounge
|
|
|
|
- name: Deploy The Lounge configuration
|
|
template:
|
|
src: config.js.j2
|
|
dest: /etc/thelounge/config.js
|
|
owner: thelounge
|
|
group: thelounge
|
|
mode: 0660
|
|
notify: Restart The Lounge
|