blob: 38c4286bb1e468f8e990e7e1e1c97f377ebf4f1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
---
tags:
- ansible
---
Configure ansible.cfg with:\
```
stdout_callback=json
bin_ansible_callbacks = True
```
Outputs result as json, so we can jq it
Can also be done with env var:
```
ANSIBLE_LOAD_CALLBACK_PLUGINS=1 \
ANSIBLE_STDOUT_CALLBACK=json \
```
|