Closed opacc-sel closed 1 month ago
That’s unfortunately not how become works. The task is run as the become user which means the action applies to it. If you wish to store it under the connection user then you should target that as your become credentials.
Hi, thank you for the fast reply. Well, I just assumed the store can be defined for the credential creation and the module handles that. Neverless, we gave the user admin rights and your solution worked as proposed, thank you very much. For my point of view the hint in the module documentation should be clarified because I understood it wrong: "This module requires to be run with become so it can access the user’s credential store." It should be specified which users is meant. The become user in this case and not the ansible user.
SUMMARY
The credentials which are created with the win_credential task are in the credential store from the become user (admin) and not with the loged in user (winrm).
ISSUE TYPE
COMPONENT NAME
win_credential
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Targeting Windows 10
STEPS TO REPRODUCE
Run the following tasks:
EXPECTED RESULTS
The credentials should be in the connected users's (winrm) credentials store
ACTUAL RESULTS
The credentials are in the store from the become user (admin)