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-08-23 11:51:42 -07:00
|
|
|
url: "http://{{ansible_host}}:26657/status"
|
2018-05-23 09:38:01 -07:00
|
|
|
register: status
|
|
|
|
|
|
|
|
- name: Print status
|
|
|
|
debug: var=status.json.result
|
|
|
|
|