summaryrefslogtreecommitdiffstats
path: root/roles/user/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-12 16:23:27 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-12 16:23:27 +0100
commit1cc253f2da07ca33baf1ba6cac789cdb92923f36 (patch)
tree723a8a743f6955d8c1949adec399827e7a0d7356 /roles/user/meta
parentd0f7a25781c9aee4c61ba7bf5c7a3f26950f5737 (diff)
Update user role to allow configure a password instead of default
If no user_password is provided, the behavior remains the same, it uses the default changeme password and requires to be changed for using sudo If a user_password is provided, this hashed password will be used instead of the default and doesn't require changing on first usage of sudo
Diffstat (limited to 'roles/user/meta')
-rw-r--r--roles/user/meta/argument_specs.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/user/meta/argument_specs.yml b/roles/user/meta/argument_specs.yml
index 5d2e4b9b..74bb4b8a 100644
--- a/roles/user/meta/argument_specs.yml
+++ b/roles/user/meta/argument_specs.yml
@@ -8,6 +8,11 @@ argument_specs:
type: "str"
required: true
description: "The username of the created account."
+ user_password:
+ type: "str"
+ required: false
+ description: "If provided, the password will be used for the user account."
+ no_log: true
user_public_keys:
type: "list"
required: true