18 lines
551 B
YAML
18 lines
551 B
YAML
|
# 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.
|
||
|
# /etc/init.d/poabridge rebuild - builds a new bridge deployment from scratch.
|
||
|
---
|
||
|
- name: "Set poabridge service"
|
||
|
template:
|
||
|
src: poabridge.j2
|
||
|
dest: "/etc/init.d/poabridge"
|
||
|
owner: root
|
||
|
mode: 755
|
||
|
|
||
|
- name: "Start/Enable poabridge service"
|
||
|
service:
|
||
|
name: "poabridge"
|
||
|
state: started
|
||
|
enabled: yes
|
||
|
use: service
|