Skip to content

Commit

Permalink
Use pam_options template with bash turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Jan 15, 2025
1 parent 845f5c3 commit 56f5eb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 59 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ ocil: |-
platform: package[pam]

{{% if 'ubuntu' not in product or product == 'ubuntu2004' %}}
template:
name: pam_options
vars:
path: /etc/pam.d/common-password
type: password
control_flag: requisite
module: pam_pwhistory.so
{{% if 'ubuntu' in product and product != 'ubuntu2004' %}}
arguments:
- variable: remember
operation: greater than or equal
backends:
- bash: "off"
{{% else %}}
arguments:
- variable: remember
operation: greater than or equal
Expand Down

0 comments on commit 56f5eb4

Please sign in to comment.