mirror of https://github.com/ansible/ansible.git
Update ansible-test --windows inventory creation. (#60911)
Host specific settings are created as part of the generated inventory instead of using a host_vars directory. Also update connection tests to work properly with the generated inventory changes.pull/60940/head
parent
e58919bccd
commit
92380d7050
@ -1,4 +0,0 @@
|
||||
# force 2008 to use PSRP for the connection plugin
|
||||
ansible_connection: psrp
|
||||
ansible_psrp_auth: basic
|
||||
ansible_psrp_cert_validation: ignore
|
@ -1,4 +0,0 @@
|
||||
# force 2016 to use NTLM + HTTP message encryption
|
||||
ansible_winrm_transport: ntlm
|
||||
ansible_winrm_scheme: http
|
||||
ansible_port: 5985
|
@ -1,3 +0,0 @@
|
||||
[windows:vars]
|
||||
ansible_connection=psrp
|
||||
ansible_psrp_cert_validation=ignore
|
@ -0,0 +1,9 @@
|
||||
[windows]
|
||||
{% for host in vars.groups.windows %}
|
||||
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_port={{ hostvars[host]['ansible_port'] }} ansible_user={{ hostvars[host]['ansible_user'] }} ansible_password={{ hostvars[host]['ansible_password'] }}
|
||||
{% endfor %}
|
||||
|
||||
[windows:vars]
|
||||
ansible_connection=psrp
|
||||
ansible_psrp_auth=negotiate
|
||||
ansible_psrp_cert_validation=ignore
|
@ -0,0 +1,10 @@
|
||||
[windows]
|
||||
{% for host in vars.groups.windows %}
|
||||
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_port={{ hostvars[host]['ansible_port'] }} ansible_user={{ hostvars[host]['ansible_user'] }} ansible_password={{ hostvars[host]['ansible_password'] }}
|
||||
{% endfor %}
|
||||
|
||||
[windows:vars]
|
||||
ansible_connection=winrm
|
||||
# we don't know if we're using an encrypted connection or not, so we'll use message encryption
|
||||
ansible_winrm_transport=ntlm
|
||||
ansible_winrm_server_cert_validation=ignore
|
Loading…
Reference in New Issue