Add bzflag unit file, and fixed znc unit file deployment and comments
This commit is contained in:
parent
90346e6453
commit
cbe3c56ea2
|
@ -9,6 +9,24 @@
|
||||||
mode: 0770
|
mode: 0770
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
|
- name: Install znc target
|
||||||
|
copy:
|
||||||
|
dest: /etc/systemd/system/bzflag.service
|
||||||
|
content: |
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=BZFlag Game Server
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/games/bzfs -conf /var/lib/bzflag/bzflag.conf
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
User=bzflag
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
#- name: Install znc user script
|
#- name: Install znc user script
|
||||||
# copy:
|
# copy:
|
||||||
# src: ../files/var/lib/znc/create-znc_account.sh
|
# src: ../files/var/lib/znc/create-znc_account.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Install our baseline packages for all machines, irrespective of what role they might have
|
# Configure znc
|
||||||
---
|
---
|
||||||
- name: Create home dirs for znc
|
- name: Create home dirs for znc
|
||||||
file:
|
file:
|
||||||
|
@ -17,18 +17,12 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0770
|
mode: 0770
|
||||||
|
|
||||||
- name: Install crontab target
|
- name: Install znc target
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/systemd/system/znc.service
|
dest: /etc/systemd/system/znc.service
|
||||||
content: |
|
content: |
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
[Unit]
|
|
||||||
Description=Simulates cron, limited to /etc/cron.*
|
|
||||||
Requires=crontab@hourly.timer
|
|
||||||
Requires=crontab@daily.timer
|
|
||||||
Requires=crontab@weekly.timer
|
|
||||||
Requires=crontab@monthly.timer
|
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ZNC, an advanced IRC bouncer
|
Description=ZNC, an advanced IRC bouncer
|
||||||
|
|
Loading…
Reference in New Issue