summaryrefslogtreecommitdiffstats
path: root/roles/password_policy/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:32:07 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:32:07 +0200
commit652734b570bc728f02df99a7c570b119ddc5c4be (patch)
tree356460fb60f2d8d13e6e1a8b1a7aaba9d04aa501 /roles/password_policy/meta
parent2d45a9b60a008581672af7a901258f488d3cde16 (diff)
Refactor: move password policy to its own role
Diffstat (limited to 'roles/password_policy/meta')
-rw-r--r--roles/password_policy/meta/argument_specs.yml51
-rw-r--r--roles/password_policy/meta/main.yml19
2 files changed, 70 insertions, 0 deletions
diff --git a/roles/password_policy/meta/argument_specs.yml b/roles/password_policy/meta/argument_specs.yml
new file mode 100644
index 00000000..8c312a8c
--- /dev/null
+++ b/roles/password_policy/meta/argument_specs.yml
@@ -0,0 +1,51 @@
+---
+argument_specs:
+ main:
+ options:
+ password_policy_enabled:
+ type: "bool"
+ description: "Enable password policy"
+ default: true
+ password_policy_difok:
+ type: "int"
+ description: "The number of differences between new and old password"
+ default: 0
+ password_policy_minlen:
+ type: "int"
+ description: "Min password length"
+ default: 8
+ password_policy_dcredit:
+ type: "int"
+ description: "Num of digits required in password"
+ default: 0
+ password_policy_ucredit:
+ type: "int"
+ description: "Num of uppercase chars required in password"
+ default: 0
+ password_policy_ocredit:
+ type: "int"
+ description: "Num of special chars required in password"
+ default: 0
+ password_policy_lcredit:
+ type: "int"
+ description: "Num of lowercase chars required in password"
+ default: 0
+ password_policy_minclass:
+ type: "int"
+ description: "Num of required classes (upper/lower/digit/special) chars required in password"
+ default: 0
+ password_policy_maxrepeat:
+ type: "int"
+ description: "Num of allowed repeats in password"
+ default: 0
+ password_policy_maxclassrepeat:
+ type: "int"
+ description: "Maximum number of consecutive class repeats in password"
+ default: 0
+ password_policy_gecoscheck:
+ type: "int"
+ description: |
+ If nonzero, check whether the individual words longer than 3 characters from the
+ passwd GECOS field of the user are contained in the new password.
+ The default is 0 which means that this check is disabled.
+ default: 0
diff --git a/roles/password_policy/meta/main.yml b/roles/password_policy/meta/main.yml
new file mode 100644
index 00000000..fdcf75a1
--- /dev/null
+++ b/roles/password_policy/meta/main.yml
@@ -0,0 +1,19 @@
+---
+dependencies: []
+galaxy_info:
+ role_name: password_policy
+ author: a14m
+ description: "Configure the linux distro password policy"
+ company: "kartoffeln.work GmbH."
+ license: "license MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: ArchLinux
+ versions:
+ - all
+ - name: Ubuntu
+ versions:
+ - noble
+ - name: Debian
+ versions:
+ - bookworm