Use valid value for CREATE_HOME

At the moment we pass boolean value to CREATE_HOME instead of yes/no.
Leveraging ternary allows to always supply expected values despite of
variable type in ansible.

Closes-Bug: #1850200
Change-Id: I957dc9b98f1de23ea66ea0e225989e4f907a02cb
This commit is contained in:
Dmitriy Rabotyagov 2024-02-14 09:44:52 +01:00 committed by Dmitriy Rabotyagov
parent 9d7f0ad471
commit 510a0778a7

View File

@ -305,7 +305,7 @@ shadow_utils_rhel7:
stig_id: V-71995
os_family: all
- parameter: CREATE_HOME
value: "{{ security_shadow_utils_create_home | default('') }}"
value: "{{ security_shadow_utils_create_home | bool | ternary('yes', 'no') }}"
stig_id: V-72013
os_family: all