From 1cc253f2da07ca33baf1ba6cac789cdb92923f36 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 12 Dec 2025 16:23:27 +0100 Subject: 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 --- roles/user/meta/argument_specs.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/user/meta') 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 -- cgit v1.2.3