Search code examples
ansible-awx

How can I connect to a windows client with awx?


As far as I konw about awx, it use CREDENTIAL to connect to the client host, but how can awx connect to a client host with a windows operation system such as windows 2012? If I use the machine CREDENTIAL type ,the awx will still use ssh to connect with the client host. Is there any CREDENTIAL type which is used to connect with windows host? I have installed the winrm module and I can connect with a windows host in ansible already,but cannot in awx.


Solution

  • In Ansible tower, inventories -> Details tab - > extra variables, provide the below details.

    ---
    ansible_connection: winrm
    ansible_winrm_kerberos_delegation: true
    ansible_winrm_scheme: http
    ansible_port: 5985