1
roles/ninjabot/templates/ninjabot/ninjabot.json.j2
Normal file
1
roles/ninjabot/templates/ninjabot/ninjabot.json.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ ninjabot.config | to_nice_json(indent=2) }}
|
15
roles/ninjabot/templates/systemd/system/ninjabot.service.j2
Normal file
15
roles/ninjabot/templates/systemd/system/ninjabot.service.j2
Normal file
@ -0,0 +1,15 @@
|
||||
{{ ansible_header | comment }}
|
||||
[Unit]
|
||||
Description=NinjaBot IRC bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/var/local/ninjabot
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
ExecStart=/usr/bin/python3 /var/local/ninjabot/ninjabot.py
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
3
roles/ninjabot/templates/update-motd.d/05-service.j2
Executable file
3
roles/ninjabot/templates/update-motd.d/05-service.j2
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/tail +14
|
||||
{{ ansible_header | comment }}
|
||||
[0m> [38;5;82mNinjaBot[0m a été déployé sur cette machine. Voir [38;5;6m/var/local/ninjabot/[0m.
|
Reference in New Issue
Block a user