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)
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5acdeb6f-16f8-4e93-b114-9c431387d485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.