improved jinja logic

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2024-08-08 11:08:22 +01:00
parent 565ef20715
commit 485a85db76
No known key found for this signature in database
GPG key ID: 997FF7FE93AEB5B9

View file

@ -1,7 +1,11 @@
# CIS Configurations # CIS Configurations
# 5.3.3.2.3 Ensure password complexity is configured # 5.3.3.2.3 Ensure password complexity is configured
{% if rhel9cis_passwd_complex_option == minclass %}
minclass = {{ rhel9cis_passwd_minclass }} minclass = {{ rhel9cis_passwd_minclass }}
{ %endif %}
{% if rhel9cis_passwd_complex_option == credits %}
dcredit = {{rhel9cis_passwd_dcredit }} dcredit = {{rhel9cis_passwd_dcredit }}
ucredit = {{ rhel9cis_passwd_ucredit }} ucredit = {{ rhel9cis_passwd_ucredit }}
ocredit = {{ rhel9cis_passwd_ocredit }} ocredit = {{ rhel9cis_passwd_ocredit }}
lcredit = {{ rhel9cis_passwd_lcredit }} lcredit = {{ rhel9cis_passwd_lcredit }}
{% endif %}