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/defaults/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'roles/user/defaults') diff --git a/roles/user/defaults/main.yml b/roles/user/defaults/main.yml index 55fa2869..a104d44a 100644 --- a/roles/user/defaults/main.yml +++ b/roles/user/defaults/main.yml @@ -1,7 +1,11 @@ --- # Default user password: changeme -# Password will be required to change after first usage -user_password: +# Default Password will be required to change after first usage +user_default_password: '$6$jF4YTa1r2tKMH4b3$9KdWeEXJ0RfaS0EfTE6CPFmJFxPABXa455U0Wc47iGxqvsgchkcuRAha/hus//mG7mxWdfEFkLkCKeBsdyLcX/' +# If provided, the user_password will be used instead of the default password and won't require change on first login +# user_password: +# '$6$jF4YTa1r2tKMH4b3$9KdWeEXJ0RfaS0EfTE6CPFmJFxPABXa455U0Wc47iGxqvsgchkcuRAha/hus//mG7mxWdfEFkLkCKeBsdyLcX/' + user_groups: [] -- cgit v1.2.3