From 510a0778a7172c047486f919b93b77e2a6671d8d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 14 Feb 2024 09:44:52 +0100 Subject: [PATCH] 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 --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 9342b76d..38eddc1a 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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