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 | 1cc253f2da07ca33baf1ba6cac789cdb92923f36 (patch) | |
| tree | 723a8a743f6955d8c1949adec399827e7a0d7356 /roles/user/defaults/main.yml | |
| parent | d0f7a25781c9aee4c61ba7bf5c7a3f26950f5737 (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/main.yml')
| -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: [] |
