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