fix(ansible): omits in loops need a default now #311

Merged
saibotk merged 1 commit from fix-ansible-omits into main 2025-07-26 16:20:21 +02:00
Owner

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

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
saibotk self-assigned this 2025-07-26 16:14:34 +02:00
fix(ansible): omits in loops need a default now
All checks were successful
ci/woodpecker/pr/ansible-lint Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
3198d69f48
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
requested reviews from histalek, Owners 2025-07-26 16:14:35 +02:00
histalek approved these changes 2025-07-26 16:19:18 +02:00
saibotk deleted branch fix-ansible-omits 2025-07-26 16:20:21 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: SipsOfCode/infrastructure#311
No description provided.