Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

Windows Transport

SUMMARY

Allow connectivity to Windows hosts, via Win32 OpenSSH (https://github.com/PowerShell/Win32-OpenSSH) opposed to WinRM.

I can see this was requested last year but was closed as it wasn't apart of windows. Now there is a Microsoft release available (pre-prod currently). #24726

Issue 2:
(orig comment reformatted for readability)

ISSUE TYPE

Bug Report

COMPONENT NAME

vmware_guest

ANSIBLE VERSION

ansible 2.5.0

config file = /etc/ansible/ansible.cfg

configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible

executable location = /usr/bin/ansible

python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]

CONFIGURATION

[root@vhwansgp2 _10__bss_infrastructure_playbooks]# ansible-config dump --only-changed

DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/inventory']

DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug

HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False

PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30

[root@vhwansgp2 _10__bss_infrastructure_playbooks]#

OS / ENVIRONMENT

Ansible Server : RHEL 7

Trying to build a VM of ESX version 6.

SUMMARY

vmware_guest module throwing the below error.

<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py; rm -rf "/var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/" > /dev/null 2>&1 && sleep 0'

The full traceback is:

Traceback (most recent call last): File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1547, in <module>
main()
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1538, in main
result = pyv.deploy_vm()
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1372, in deploy_vm
self.wait_for_vm_ip(vm)
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1457, in wait_for_vm_ip
facts = self.gather_facts(newvm)
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 564, in gather_facts
return gather_vm_facts(self.content, vm)
File "/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py", line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config'

fatal: [127.0.0.1]: FAILED! => {…

PLAY RECAP *********************************************************************07:54:15

127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1

STEPS TO REPRODUCE

---
# Create a new VM from a template using the new vmware_guest module
- name: VM from template
hosts: 127.0.0.1
gather_facts: false
connection: local
vars:
notes: Created by Ansible
dumpfacts: False
tasks:
- name: set the template name
set_fact:
vmtemplate: RHEL7.3_Template
when: os == "Redhat" and ver == "7.3"
- name: Create VM from template
vmware_guest:
validate_certs: False
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
esxi_hostname: "{{ esxhost }}"
datacenter: GBS
name: "{{hname }}"
template: "{{ vmtemplate }}"
disk:
- size_gb: 35
type: thin
datastore: "{{ datastore }}"
hardware:
memory_mb: "{{ vm_memory | default(1024) }}"
num_cpus: "{{ vm_cpu }}"
networks:
- name: VM Network
ip: "{{ ipaddr }}"
netmask: 255.255.255.0
gateway: "{{ gatwy }}"
dns_servers:
- 10.0.0.250
wait_for_ip_address: True
state: present
register: newvm
- name: IP address info
debug:
msg: "{{ newvm.instance.ipv4 }} {{ hname }} {{ os }} {{ ver }}"

EXPECTED RESULTS

It will create a vm and perform the basic OS configurations.

ACTUAL RESULTS

SEARCH

KEY

ansible-playbook 2.5.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
Using /etc/ansible/ansible.cfg as config file
SSH password:
Parsed /tmp/awx_95_x_P4Re/tmpEiKzAH.awxrest.py inventory source with script plugin

PLAYBOOK: create_vm.yml ********************************************************
1 plays in create_vm.yml

PLAY [VM from template] ********************************************************07:53:30
META: ran handlers
TASK [set the template name] ***************************************************07:53:30
task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1107:53:30
ok: [127.0.0.1] => {
"ansible_facts": {
"vmtemplate": "RHEL7.3_Template"
},
"changed": false,
"failed": false
}

TASK [Create VM from template] *************************************************07:53:30
task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1507:53:30
Using module file /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible/modules/cloud/vmware/vmware_guest.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: awx
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `" && echo ansible-tmp-1508741611.03-141536980839774="` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmp2E_Vnk TO /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/ /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py; rm -rf "/var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/" > /dev/null 2>&1 && sleep 0'

The full traceback is:

Traceback (most recent call last): File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1547, in <module>
main()
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1538, in main
result = pyv.deploy_vm()
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1372, in deploy_vm
self.wait_for_vm_ip(vm)
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1457, in wait_for_vm_ip
facts = self.gather_facts(newvm)
File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 564, in gather_facts
return gather_vm_facts(self.content, vm)
File "/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py", line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config'

fatal: [127.0.0.1]: FAILED! => {…

PLAY RECAP *********************************************************************07:54:15
127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1