Skip to content

Instantly share code, notes, and snippets.

@phaer
Created February 26, 2017 23:52
Show Gist options
  • Save phaer/4882955a75ffb47a246615dc850f5a70 to your computer and use it in GitHub Desktop.
Save phaer/4882955a75ffb47a246615dc850f5a70 to your computer and use it in GitHub Desktop.
ansible-snippets
# filter setup module through jq.
ansible -i inventory '*' -m setup -o | sed 's/^\(.*\) | SUCCESS => \(.*\)/{"\1": \2}/' | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment