diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-12-12 16:23:27 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-12-12 16:23:27 +0100 |
| commit | bf5b593081984f39922d73d82258175ade2fe649 (patch) | |
| tree | 723a8a743f6955d8c1949adec399827e7a0d7356 /roles/user/defaults | |
| parent | 6ed3b7b3e49f7fbf5933c79176a08607cc2a23c1 (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/defaults')
| -rw-r--r-- | roles/user/defaults/main.yml | 8 |
1 files changed, 6 insertions, 2 deletions
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: [] |
