Re: [ansible-project] Ansible facts from command line - drill down

2017-08-23 Thread Matt Martz
The filter functionality only works for top level keys. You can either grep, or use the `--tree` option to write the response out to a file, and then use something like jq or a programming language to parse the JSON file. On Wed, Aug 23, 2017 at 2:02 PM, Anfield wrote:

[ansible-project] Ansible facts from command line - drill down

2017-08-23 Thread Anfield
Running this from command link - ansible all -m setup -a 'filter=ansible_default_ipv4*' The output is 127.0.0.1 | SUCCESS => { "ansible_facts": { "ansible_default_ipv4": { "address": "192.168.150.129", "alias": "eno1636", "broadcast":