feature/generate-credentials #5
@ -305,6 +305,3 @@
|
|||||||
fail_msg: >-
|
fail_msg: >-
|
||||||
The python sdk for docker is really out of date, you need to install
|
The python sdk for docker is really out of date, you need to install
|
||||||
a more recent version of it in order to use this tool.
|
a more recent version of it in order to use this tool.
|
||||||
|
|
||||||
# - name: "Fail"
|
|
||||||
# fail:
|
|
||||||
|
@ -12,14 +12,9 @@
|
|||||||
- name: "Register haproxy services in consul"
|
- name: "Register haproxy services in consul"
|
||||||
when: enable_consul | bool
|
when: enable_consul | bool
|
||||||
block:
|
block:
|
||||||
- name: "Load consul cluster variables"
|
|
||||||
ansible.builtin.include_vars:
|
|
||||||
file: "{{ sub_configuration_directories.consul_servers }}/consul_config.yml"
|
|
||||||
name: _consul_cluster_config
|
|
||||||
|
|
||||||
- name: "Register haproxy services in consul"
|
- name: "Register haproxy services in consul"
|
||||||
community.general.consul:
|
community.general.consul:
|
||||||
token: "{{ _consul_cluster_config.root_token.secret_id }}"
|
token: "{{ _credentials.consul.root_token.secret_id }}"
|
||||||
service_name: haproxy
|
service_name: haproxy
|
||||||
service_port: 80
|
service_port: 80
|
||||||
interval: 20s
|
interval: 20s
|
||||||
|
Loading…
Reference in New Issue
Block a user