2018-05-23 09:38:01 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
connection: local
|
|
|
|
any_errors_fatal: true
|
|
|
|
gather_facts: no
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Gather status
|
|
|
|
uri:
|
|
|
|
body_format: json
|
2018-06-13 15:13:51 -07:00
|
|
|
url: "http://{{inventory_hostname}}:26657/status"
|
2018-05-23 09:38:01 -07:00
|
|
|
register: status
|
|
|
|
|
|
|
|
- name: Print status
|
|
|
|
debug: var=status.json.result
|
|
|
|
|