23b: enable service

This commit is contained in:
Markus 2023-01-01 02:04:24 +01:00
parent 631f34baea
commit 1e3a163dca
2 changed files with 9 additions and 9 deletions

View File

@ -34,14 +34,14 @@
file: src=/etc/nginx/sites-available/23b dest=/etc/nginx/sites-enabled/23b state=link
notify: Restart nginx
#- name: Systemd unit for 23b
# template: src=23b.service.j2 dest=/etc/systemd/system/23b.service
# notify:
# - Reload systemd
# - Restart 23b
#
#- name: Start the 23b service
# service: name=23b state=started enabled=yes
- name: Systemd unit for 23b
template: src=23b.service.j2 dest=/etc/systemd/system/23b.service
notify:
- Reload systemd
- Restart 23b
- name: Start the 23b service
service: name=23b state=started enabled=yes
- name: Enable monitoring
include_role: name=icinga-monitor tasks_from=http

View File

@ -13,7 +13,7 @@ Group=23b
Restart=always
TimeoutStartSec=1200
WorkingDirectory=/opt/23b
WorkingDirectory=/opt/23b/23b/23b
# Make sure no old containers are running
ExecStartPre=/usr/bin/docker-compose down -v