I have a register with the following output of a query from the acl module.
`
ok: [server.domain.com] => {
“acl_query.results”: [
{
“_ansible_item_result”: true,
“_ansible_no_log”: false,
“changed”: false,
“item”: [
{
“path”: “/local/py/virtualenvs/service_mix/logs”
},
{
“etype”: “other”,
“permissions”: “rwx”
}
],
“skip_reason”: “Conditional result was False”,
“skipped”: true
},
{
“_ansible_item_result”: true,
“_ansible_no_log”: false,
“changed”: false,
“item”: [
{
“path”: “/local/py/virtualenvs/service_mix/tmp_files”
},
{
“etype”: “other”,
“permissions”: “rwx”
}
],
“skip_reason”: “Conditional result was False”,
“skipped”: true
},
{
“_ansible_item_result”: true,
“_ansible_no_log”: false,
“_ansible_parsed”: true,
“acl”: [
“user::rwx”,
“user:cva:rwx”,
“user:scmauto:rwx”,
“group::r-x”,
“mask::rwx”,
“other::r-x”,
“default:user::rwx”,
“default:user:cva:rwx”,
“default:user:scmauto:rwx”,
“default:group::r-x”,
“default:mask::rwx”,
“default:other::r-x”
],
“changed”: false,
“failed”: false,
“invocation”: {
“module_args”: {
“default”: false,
“entity”: “”,
“entry”: null,
“etype”: null,
“follow”: true,
“path”: “/local/httpd”,
“permissions”: null,
“recursive”: false,
“state”: “query”,
“use_nfsv4_acls”: false
}
},
“item”: [
{
“path”: “/local/httpd”
},
{
“entity”: “my_user”,
“etype”: “user”,
“permissions”: “rwx”
}
],
“msg”: “current acl”
}
]
}
`
How can I write a debug module that will show me, for each item in results array, the path, entity, etype, and permissions values?
`
- debug: msg=“{{ acl_query.results.??? }}”
`
(Why am I so bad at this? LOL)