Hi
Thank you, I will try it out. For Ansible to connect to my Windows client, I currently am setting it with the group_vars/windows.yml containing the following:
ansible_user:
tu...@DOMAIN.COMansible_port: 5986
ansible_connection: winrm
ansible_winrm_transport: kerberos
# The following is necessary for Python 2.7.9+ when using default WinRM self-signed certificates:
ansible_winrm_server_cert_validation: ignore
And I run ansible-playbook with the --ask-pass option so that it would ask for the password.
I have only started using Ansible so I don't really understand the options used, and I found the above options somewhere and they have worked for me.
With the above setting, I am using Kerberos right? And so with what you suggested, I should add the become options in the win_package moduleto my playlist. If I want to use become to use the account I am using to log on already, do I need to set the ansible_become_pass as well, or even the anisible_become_user option as well. I would like to keep the password outside of the configuration files, and that is why I used the --ask-pass so that it would ask me for the password.
Regards,
Tuyen Nguyen