Hey guys,
i'm having following variable object structure:
folders:
> - {folder: '/', owner: "owner1", permission: '775'}
> - {folder: '/tmp', owner: "owner2", permission: '777'}
> - {folder: '/test', owner: "owner3", permission: '777'}
'folders' is the variable i pass down to another task file.
In that task-file, is it possible to extract a list of 'owners' out of the
'folders' variable ?
Something like
- name: Print owners
> debug: "msg={{folders[].folder}}"
?
best regards
Johannes
--
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].
For more options, visit https://groups.google.com/groups/opt_out.