2019-07-02 14:10:46 +03: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 11:17:02 +03:00
|
|
|
|
2019-07-16 15:58:26 +03:00
|
|
|
- name: "Enable the service"
|
2019-07-02 14:10:46 +03:00
|
|
|
service:
|
|
|
|
name: "poabridge"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
use: service
|
2019-07-16 15:58:26 +03:00
|
|
|
|
|
|
|
- name: Start the service
|
|
|
|
shell: service poabridge start
|