8ea6c716ea
* Build instead of up * Starting the service explicitly.
21 lines
661 B
YAML
21 lines
661 B
YAML
# 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.
|
|
# /etc/init.d/tokenbridge-monitor rebuild - builds a new monitor deployment from scratch.
|
|
---
|
|
- name: "Set the service"
|
|
template:
|
|
src: tokenbridge-monitor.j2
|
|
dest: "/etc/init.d/tokenbridge-monitor"
|
|
owner: root
|
|
mode: 755
|
|
|
|
- name: "Enable the service"
|
|
service:
|
|
name: "tokenbridge-monitor"
|
|
state: started
|
|
enabled: yes
|
|
use: service
|
|
|
|
- name: Start the service
|
|
shell: service tokenbridge-monitor start
|