2019-07-09 19:26:40 +02:00
|
|
|
# This role creates a tokenbridge-monitor service which is designed to manage docker-compose monitor deployment.
|
|
|
|
# /etc/init.d/tokenbridge-monitor start, status, stop, restart - does what the services usually do in such cases.
|
|
|
|
---
|
|
|
|
- name: "Set the service"
|
|
|
|
template:
|
|
|
|
src: tokenbridge-monitor.j2
|
|
|
|
dest: "/etc/init.d/tokenbridge-monitor"
|
|
|
|
owner: root
|
|
|
|
mode: 755
|
2019-07-11 10:17:02 +02:00
|
|
|
|
2019-07-16 14:58:26 +02:00
|
|
|
- name: "Enable the service"
|
2019-07-09 19:26:40 +02:00
|
|
|
service:
|
|
|
|
name: "tokenbridge-monitor"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
use: service
|
2019-07-16 14:58:26 +02:00
|
|
|
|
|
|
|
- name: Start the service
|
|
|
|
shell: service tokenbridge-monitor start
|