18 lines
285 B
YAML
18 lines
285 B
YAML
|
---
|
||
|
|
||
|
- hosts: all
|
||
|
connection: local
|
||
|
any_errors_fatal: true
|
||
|
gather_facts: no
|
||
|
|
||
|
tasks:
|
||
|
- name: Gather status
|
||
|
uri:
|
||
|
body_format: json
|
||
|
url: "http://{{inventory_hostname}}:46657/status"
|
||
|
register: status
|
||
|
|
||
|
- name: Print status
|
||
|
debug: var=status.json.result
|
||
|
|