Add bzflag unit file, and fixed znc unit file deployment and comments

This commit is contained in:
Ubergeek 2019-02-06 00:58:46 +00:00
parent 90346e6453
commit cbe3c56ea2
2 changed files with 20 additions and 8 deletions

View File

@ -9,6 +9,24 @@
mode: 0770
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
# copy:
# src: ../files/var/lib/znc/create-znc_account.sh

View File

@ -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
file:
@ -17,18 +17,12 @@
group: root
mode: 0770
- name: Install crontab target
- name: Install znc target
copy:
dest: /etc/systemd/system/znc.service
content: |
[Install]
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]
Description=ZNC, an advanced IRC bouncer