2019-07-02 13:10:46 +02:00
|
|
|
# This role creates a poabridge service which is designed to manage docker-compose bridge deployment.
|
|
|
|
# /etc/init.d/poabridge start, status, stop, restart - does what the services usually do in such cases.
|
|
|
|
---
|
|
|
|
- name: "Set poabridge service"
|
|
|
|
template:
|
|
|
|
src: poabridge.j2
|
|
|
|
dest: "/etc/init.d/poabridge"
|
|
|
|
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-02 13:10:46 +02:00
|
|
|
service:
|
|
|
|
name: "poabridge"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
use: service
|
2019-07-16 14:58:26 +02:00
|
|
|
|
|
|
|
- name: Start the service
|
|
|
|
shell: service poabridge start
|