ansible/roles/shell/tasks/znc.yml

45 lines
903 B
YAML
Raw Normal View History

# Configure znc
2019-02-04 13:58:54 +00:00
---
- name: Create home dirs for znc
file:
path: /var/lib/znc/.znc
state: directory
owner: znc
group: root
2019-02-04 14:15:40 +00:00
mode: 0770
2019-02-04 13:58:54 +00:00
- name: Create znc run dir
file:
path: /var/run/znc
state: directory
owner: znc
group: root
2019-02-04 14:15:40 +00:00
mode: 0770
2019-02-04 13:58:54 +00:00
- name: Install znc target
2019-02-04 13:58:54 +00:00
copy:
dest: /etc/systemd/system/znc.service
content: |
[Install]
WantedBy=multi-user.target
[Unit]
Description=ZNC, an advanced IRC bouncer
After=network-online.target
[Service]
ExecStart=/usr/bin/znc -f --datadir=/var/lib/znc/.znc
ExecReload=/bin/kill -HUP $MAINPID
User=znc
[Install]
WantedBy=multi-user.target
2019-03-15 22:21:51 +00:00
- name: Install LE hook
copy:
src: ../files/etc/letsencrypt/renewal-hooks/update-znc.pem
dest: /etc/letsencrypt/renewal-hooks/update-znc.pem
owner: root
group: root
2020-09-18 11:29:57 +00:00
mode: 0755