diff --git a/ash-linux/el9/RuleById/high/content_rule_grub2_uefi_password.sls b/ash-linux/el9/RuleById/high/content_rule_grub2_uefi_password.sls index 945f194f4..fe18d78a4 100644 --- a/ash-linux/el9/RuleById/high/content_rule_grub2_uefi_password.sls +++ b/ash-linux/el9/RuleById/high/content_rule_grub2_uefi_password.sls @@ -151,7 +151,7 @@ user_cfg_content-{{ stig_id }}-present: - name: '{{ grubPassFile }}' - append_if_not_found: True - not_found_content: |- - 'GRUB2_PASSWORD={{ grubEncryptedPass }}' + GRUB2_PASSWORD={{ grubEncryptedPass }} - pattern: '^(\s*GRUB2_PASSWORD=).*$' - repl: 'GRUB2_PASSWORD={{ grubEncryptedPass }}' - require: