Closed julianmaze closed 7 months ago
hi @julian1059
I believe that this issue has been addressed and the fix merged, I will close this issue, please feel free to reopen or raise a new one if this particular problem still exists.
Many thanks
uk-bolly
Describe the Issue When setting the variable
ubtu22cis_ipv6_disable
tosysctl
the playbook fails to execute. This is due to a when clause on the previous task that is invalid due to a previous skipped task.The variable
ubtu22cis_3_1_1_cmdline_settings
is registered during the task named3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Check grub cmdline linux
Expected Behavior
3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Insert ipv6.disable if it doesn't exist
is skipped successfully3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Remove net.ipv6.conf.all.disable_ipv6
runs successfully to disable IPv6Actual Behavior Task
3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Insert ipv6.disable if it doesn't exist
fails to evaulate the when clause of its task.Control(s) Affected Control 3.1.1
Environment (please complete the following information):
Additional Notes NA
Possible Solution Use nested blocks for the grub tasks. The nested block will have a when clause of
when: ubtu22cis_ipv6_disable == 'grub'
and the tasks in the block can further be configured with the appropriate when clauses.