You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use ansible_user_id instead of ansible_user in libvirt_manager_user
Replace ansible_user with ansible_user_id in cifmw_libvirt_manager_user
variable to fix SSH key ownership issues when running with
ansible_connection=local.
When deploying locally (not through testproject automation), ansible_user
can become undefined with ansible_connection=local, causing the fallback
lookup('env', 'USER') to return 'root' instead of the intended user. This
resulted in SSH keys being created with root:root ownership, leading to
permission denied errors when the user tried to connect to compute nodes.
The switch to ansible_user_id correctly detects the user even with local
connections and resolves the file ownership problem.
0 commit comments