refactor(system_setup): rename bare 'password' var to user_password

The bare 'password' variable in user.yml could silently collide with any
same-named variable elsewhere in scope. Rename to user_password to
namespace it alongside username.

BREAKING CHANGE: callers passing 'password' to this role must rename it
to user_password.
This commit is contained in:
2026-06-27 21:11:25 -04:00
parent 51c1c5b611
commit a0f9b06da9
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
- name: "Create a new user {{ username }}"
user:
name: "{{ username }}"
password: "{{ password | password_hash('sha512') }}"
password: "{{ user_password | password_hash('sha512') }}"
groups:
- sudo
shell: "{{ shell }}"