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
(cherry picked from commit 510a0778a7)
This commit is contained in:
Dmitriy Rabotyagov 2024-02-14 09:44:52 +01:00 committed by Dmitriy Rabotyagov
parent 2ee64db151
commit 23ee605543
1 changed files with 1 additions and 1 deletions

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