Skip to content

Commit

Permalink
Make sure to enable pwquality module on Ubuntu when do ansible remedi…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
alanmcanonical committed Dec 18, 2024
1 parent 54dfd3f commit ea51068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/templates/accounts_password/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
}}}
{{% endif %}}

{{% if "ubuntu" in product %}}
{{{ ansible_pam_pwquality_enable('/usr/share/pam-configs/cac_pwquality') }}}
{{% endif %}}

- name: {{{ rule_title }}} - Ensure PAM variable {{{ VARIABLE }}} is set accordingly
ansible.builtin.lineinfile:
create: yes
Expand Down

0 comments on commit ea51068

Please sign in to comment.