AWX and WINRM credential integration, passwordless and using certs

Hello,

I’m using AWX since last year handling around 400 hosts fleet and now I would to try create a new windows group.

With Ansible from command line I can login into windows hosts using a pre-configured template to use certs and Winrm login like following:

somehost ansible_host=XX.XX.XX.XX

[win]
somehost

[win:vars]
ansible_winrm_scheme=https
ansible_winrm_transport=certificate
ansible_winrm_server_cert_validation=ignore
ansible_winrm_cert_key_pem=cert_key.pem
ansible_winrm_cert_pem=cert.pem
ansible_connection=winrm

I have checked the credential options looking for winrm and no luck. How can I login to a windows host without ldap or kerberos?

My Ansible WinRm config run flawless but no clue how to approach the same from AWX.

Thanks in advance.
Angel.

Any luck with this.

I’m experiencing the same issue. I tried creating custom credential type for certificate and key, and set variables ansible_winrm_cert_key_pem and ansible_winrm_cert_key_pem accordingly, but ansible expects those variables to point to the path of certificate and key files, not to store their content, so that throws an error.

Dana utorak, 6. kolovoza 2019. u 13:35:53 UTC+2 korisnik tuvida...@gmail.com napisao je:

I am als struggling with this and openen a github issue:

https://github.com/ansible/awx/issues/8490
it would also be a solution if ansible_winrm_cert_key_pem and ansible_winrm_cert_pem could be a vaulted string instead of a file.

kind regards,