Debian Codegraph @

test/integration/targets/connection_winrm/test_connection.inventory.j2

raw
1 [windows]
2 {% for host in vars.groups.windows %}
3 {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}{% if hostvars[host]['ansible_connection'] != 'ssh' %} ansible_port={{ hostvars[host]['ansible_port'] }}{% endif %} ansible_user={{ hostvars[host]['ansible_user'] }} ansible_password={{ hostvars[host]['ansible_password'] | default(hostvars[host]['ansible_test_connection_password']) }}
4 {% endfor %}
5
6 [windows:vars]
7 ansible_connection=winrm
8 # we don't know if we're using an encrypted connection or not, so we'll use message encryption
9 ansible_winrm_transport=ntlm
10 ansible_winrm_server_cert_validation=ignore