On mar 29, Jan Kowalsky wrote:
anybody has an hint, why this does not work:
sysctl__host_parameters:
- name: 'network'
options:
- 'net.ipv6.conf.all.accept_ra': 1
- 'net.ipv6.conf.default.accept_ra': 1
Error message is:
fatal: [
host.example.org]: FAILED! => {"changed": false, "msg":
"AnsibleFilterError: {{ sysctl__shared_memory_map |
combine(sysctl__paging_map) | combine(sysctl__hardening_map) |
combine(sysctl__parameters) | combine(sysctl__group_parameters) |
combine(sysctl__host_parameters) }}: |combine expects dictionaries, got
[{u'name': u'network', u'options':
[{u'net.ipv6.conf.all.accept_ra': 1},
{u'net.ipv6.conf.default.accept_ra': 1}]}]"}
Hello, sorry for a late reply.
It looks like you are trying to use the new syntax of 'debops.sysctl'
configuration with the old role provided by the separate
'debops/ansible-sysctl' GitHub repository. The 'debops.sysctl' role
included
in the DebOps monorepo has been recently revamped and uses new configuration
style, however the separate role was not updated. The documentation available
on
https://docs.debops.org/ refers to the roles included in DebOps monorepo,
and using standalone roles with it is now inaccurate.
I suggest that you swtich to the roles provided by the DebOps monorepo. It
should be easy to use them separately from the project if you add their
directory in the Ansible 'roles_path' configuration variable.
Cheers,
Maciej