fix(ansible): omits in loops need a default now #311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-ansible-omits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The newest Ansible release changed the way how omits are handled within loop items. They are now entirely dropped when the variable is marked as omitted [0].
We now use
| default(omit)
to preserve the functionality.In our codebase this is mostly used with the selinux levels.
0: https://github.com/ansible/ansible/blob/v2.19.0/changelogs/CHANGELOG-v2.19.rst#breaking-changes--porting-guide