forked from infra/ansible
23b: enable service
This commit is contained in:
parent
631f34baea
commit
1e3a163dca
@ -34,14 +34,14 @@
|
|||||||
file: src=/etc/nginx/sites-available/23b dest=/etc/nginx/sites-enabled/23b state=link
|
file: src=/etc/nginx/sites-available/23b dest=/etc/nginx/sites-enabled/23b state=link
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
#- name: Systemd unit for 23b
|
- name: Systemd unit for 23b
|
||||||
# template: src=23b.service.j2 dest=/etc/systemd/system/23b.service
|
template: src=23b.service.j2 dest=/etc/systemd/system/23b.service
|
||||||
# notify:
|
notify:
|
||||||
# - Reload systemd
|
- Reload systemd
|
||||||
# - Restart 23b
|
- Restart 23b
|
||||||
#
|
|
||||||
#- name: Start the 23b service
|
- name: Start the 23b service
|
||||||
# service: name=23b state=started enabled=yes
|
service: name=23b state=started enabled=yes
|
||||||
|
|
||||||
- name: Enable monitoring
|
- name: Enable monitoring
|
||||||
include_role: name=icinga-monitor tasks_from=http
|
include_role: name=icinga-monitor tasks_from=http
|
||||||
|
@ -13,7 +13,7 @@ Group=23b
|
|||||||
Restart=always
|
Restart=always
|
||||||
TimeoutStartSec=1200
|
TimeoutStartSec=1200
|
||||||
|
|
||||||
WorkingDirectory=/opt/23b
|
WorkingDirectory=/opt/23b/23b/23b
|
||||||
|
|
||||||
# Make sure no old containers are running
|
# Make sure no old containers are running
|
||||||
ExecStartPre=/usr/bin/docker-compose down -v
|
ExecStartPre=/usr/bin/docker-compose down -v
|
Loading…
Reference in New Issue
Block a user