VM not joining domain

17 views
Skip to first unread message

Tony Wong

unread,
Jun 10, 2020, 1:43:59 PM6/10/20
to ansible...@googlegroups.com
any idea why my Vm is not joining domain? Credentials are correct

---
# Deploy a VM from a template using Ansible 'vmware_guest' module
- name: Deploy VM from template
  vmware_guest:
    hostname: '{{ deploy_vsphere_host }}'
    username: '{{ deploy_vsphere_user }}'
    password: '{{ deploy_vsphere_password }}'
    validate_certs: no
    datacenter: '{{ deploy_vsphere_datacenter }}'
    cluster: '{{ deploy_vsphere_cluster }}'
    #resource_pool: '{{ deploy_vsphere_resourcepool }}'
    folder: '{{ deploy_vsphere_folder }}'
    name: '{{ inventory_hostname }}'
    state: poweredon
    guest_id: '{{ guest_id }}'
    annotation: "{{ guest_notes }}"
    disk:
    - size_gb: 60
      type: thin
      datastore: '{{ deploy_vsphere_datastore }}'
    networks:
    - name: '{{ guest_network }}'
      ip: '{{ guest_custom_ip }}'
      netmask: '{{ guest_netmask }}'
      gateway: '{{ guest_gateway }}'
      dns_servers:
      - '{{ guest_dns_server }}'
      start_connected: yes
    hardware:
      memory_mb: '{{ guest_memory }}'
      num_cpus: '{{ guest_vcpu }}'
    customization:
      dns_servers:
      - '{{ guest_dns_server }}'
      domain : '{{ guest_domain_name }}'
      hostname: '{{ inventory_hostname }}'
      joindomain: '{{ guest_domain_name }}'
      domainadmin: '{{ domain_admin }}'
      domainadminpassword: ' {{ domain_admin_pass }}'
    template: '{{ guest_template }}'
    wait_for_ip_address: yes
    state: poweredon
  delegate_to: localhost

David Foley

unread,
Jun 10, 2020, 6:21:13 PM6/10/20
to Ansible Project
Did you check the windows Event logs for the Active Directory

Tony Wong

unread,
Jun 11, 2020, 10:35:52 AM6/11/20
to ansible...@googlegroups.com
does this mean anything?


 "invocation": {
        "module_args": {
            "annotation": "Master #1",
            "cdrom": [],
            "cluster": "RW-VA",
            "convert": null,
            "customization": {
                "dns_servers": [
                    "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                ],
                "domain": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "domainadmin": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "domainadminpassword": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "hostname": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "joindomain": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
            },
            "customization_spec": null,
            "customvalues": [],
            "datacenter": "RW-VA",
            "datastore": null,
            "disk": [
                {
                    "datastore": "RW-VA-NIM-VOL1",
                    "size_gb": 60,
                    "type": "thin"
                }
            ],
            "esxi_hostname": null,
            "folder": "ansible",
            "force": false,
            "guest_id": "windows9Server64Guest",
            "hardware": {
                "memory_mb": "1024",
                "num_cpus": "1"
            },
            "hostname": "vasvw-vcsa.********",
            "is_template": false,
            "linked_clone": false,
            "name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "name_match": "first",
            "networks": [
                {
                    "dns_servers": [
                        "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                    ],

On Wed, Jun 10, 2020 at 3:21 PM David Foley <david...@mycit.ie> wrote:
Did you check the windows Event logs for the Active Directory

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/64defabf-bc9f-43e3-82fc-fd48e567e25ao%40googlegroups.com.

Tony Wong

unread,
Jun 11, 2020, 11:19:10 AM6/11/20
to ansible...@googlegroups.com
looks like the join account keeps locking out my domain account. any idea why its doing that? The password is correct. 


Reply all
Reply to author
Forward
0 new messages