Open
Description
SUMMARY
After the VM setup by using vmware_guest module, it cannot use domain user (domainAdmin@domin) in Ansible Tower to control. It return error: msg": "kerberos: the specified credentials were rejected by the server, ssl: the specified credentials were rejected by the server".
After checking the log in the new VM, it turns out that the VM cannot convert the domainAdmin@domin to domain\domainAdmin for authentication. Using local admin in Ansible Tower works well.
ISSUE TYPE
- Bug Report
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
Ansible 2.9.13
Ansible Tower 3.7.3
OS / ENVIRONMENT
Windows Server 2016
STEPS TO REPRODUCE
- name: Clone a virtual machine from Windows template and customize
vmware_guest:
hostname: "{{ vcenterServerIP }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
esxi_hostname: "{{ esxiHostname }}"
datastore: "{{ vcenterDatastore }}"
validate_certs: no
datacenter: "{{ dataCenter }}"
name: "{{newVMHostname}}"
template: "{{ vcenter_vmTemplate }}"
folder: "/{{ dataCenter }}/vm"
networks:
- name: "Prd_XXXXX"
ip: "{{ NIC0IP }}"
netmask: "255.255.255.0"
gateway: "160.96.118.254"
device_type: "vmxnet3"
type: static
- name: "ATL_XXXXX"
ip: "{{ NIC1IP }}"
netmask: "255.255.255.0"
device_type: "vmxnet3"
type: static
customization:
password: XXXXXX
wait_for_ip_address: True
wait_for_customization: True
EXPECTED RESULTS
Can use domain user (domainAdmin@domin) in Ansible Tower to control the new VM.
ACTUAL RESULTS
Cannot use domain user (domainAdmin@domin) in Ansible Tower to control the new VM.