Get information from Consul (Status).
Version added: 0.4.0
- Get information from Consul (Status).
- https://www.consul.io/api-docs/status
The below requirements are needed on the host that executes this module.
- requests
- name: get current leader information
consul_status:
get_leader: true
- name: get current perrs information
consul_status:
get_peers: true
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
result
str/list
|
when success. |
result from the consul api.
Sample:
10.1.10.12:8300
|
- Davinder Pal (@116davinder) <[email protected]>