mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
stub in WIP consul role changes
This commit is contained in:
parent
233117b82c
commit
01c31454b4
1 changed files with 11 additions and 7 deletions
|
|
@ -1,11 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: Start consul Docker container
|
- name: Start consul Docker container
|
||||||
become: yes
|
become: yes
|
||||||
|
vars:
|
||||||
|
JOIN_IP: $(ssh nb@206.189.183.186 sudo docker inspect -f '{{.NetworkSettings.IPAddress}}' consul-www)
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "registrator-{{ ansible_hostname }}"
|
name: consul-{{ ansible_hostname }}
|
||||||
network_mode: host
|
image: progrium/consul
|
||||||
image: gliderlabs/registrator:latest
|
restart_policy: always
|
||||||
volumes:
|
state: started
|
||||||
- /var/run/docker.sock:/tmp/docker.sock
|
ports:
|
||||||
command: "-ip {{ hostvars['www']['ansible_host'] }} consul://127.0.0.1:8500/"
|
- 8500:8500
|
||||||
|
- 8400:8400
|
||||||
|
- 8600:53/udp
|
||||||
|
command: "-join {{ JOIN_IP }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue