/
shared.yml
21 lines (17 loc) · 931 Bytes
/
shared.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle
# reboot = false
# strategy = configure
# complexity = low
# disruption = medium
{{% if product in [ "sle12", "sle15" ] %}}
{{%- set accounts_password_pam_unix_remember_file = '/etc/pam.d/common-password' -%}}
{{% else %}}
{{%- set accounts_password_pam_unix_remember_file = '/etc/pam.d/system-auth' -%}}
{{% endif %}}
{{{ ansible_instantiate_variables("var_password_pam_unix_remember") }}}
{{{ ansible_pam_pwhistory_enable(accounts_password_pam_unix_remember_file,
'requisite',
'^password.*requisite.*pam_pwquality\.so') }}}
{{{ ansible_pam_pwhistory_parameter_value(accounts_password_pam_unix_remember_file,
'remember',
'{{ var_password_pam_unix_remember }}') }}}