Skip to content

Commit ea51068

Browse files
Make sure to enable pwquality module on Ubuntu when do ansible remediation
1 parent 54dfd3f commit ea51068

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared/templates/accounts_password/ansible.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
}}}
3030
{{% endif %}}
3131

32+
{{% if "ubuntu" in product %}}
33+
{{{ ansible_pam_pwquality_enable('/usr/share/pam-configs/cac_pwquality') }}}
34+
{{% endif %}}
35+
3236
- name: {{{ rule_title }}} - Ensure PAM variable {{{ VARIABLE }}} is set accordingly
3337
ansible.builtin.lineinfile:
3438
create: yes

0 commit comments

Comments
 (0)