Re: [ansible-devel] Support for functions for complex expressions

2022-07-13 Thread Roy Lenferink
Thanks for the link Brian! I experimented a bit with macros but couldn't find a working solution. These are the lines I would like to have available in a macro: https://github.com/rlenferink/ansible-function-test/blob/9c83a40a29eb616a59b4da713771545a2aa44f32/playbook.yml#L15-L16 Knowing that this

[ansible-devel] Support for functions for complex expressions

2022-07-12 Thread Roy Lenferink
Hi all, Ansible has a lot of options, where combining and chaining filters is of great usage. In certain cases the final result might become a bit hard to maintain if it is re-used in multiple places. E.g. take the following examples: *merged_list: "{{ (lookup('vars', *query('varnames', '^.+__

[ansible-devel] Adding prefix_path option to 'group' module

2021-09-12 Thread Roy Lenferink
Hi Ansible developers, About 1.5 month ago I opened a pull request against ansible/ansible for adding a new option to the 'group' module. The option added is the prefix_path option for preparing targets which have /etc/group on another location on the filesystem. For the pull request itself, s