add consul-manager.yml role

This commit is contained in:
Jonathan Math 2021-02-03 12:18:53 -05:00
parent a25b08dadd
commit c8d79e3666

View file

@ -0,0 +1,13 @@
---
- name: Start registrator Docker container
become: yes
docker_container:
name: consul-{{ ansible_hostname }}
image: progrium/consul
restart_policy: always
state: started
command: -server -bootstrap -ui-dir /ui
ports:
- 8500:8500
- 8400:8400
- 8600:53/udp