This module, should launch the following command which join the vmware in
domain.
Launch in host vmware 'c:\windows\system32\wbem\wmic.exe ComputerSystem
where name={{ NOMBRE }} call joindomainorworkgroup fjoinoptions=3 name={{
DOMINIO }}'
*Josu Rodriguez Vilda*
Consultant
Skype:jrvilda
P Before printing think about *environment* and *costs*
2018-05-14 13:40 GMT+02:00 Karl Auer <[email protected]>:
> It would help if you would describe what it is supposed to do...
>
> On Mon, May 14, 2018 at 9:38 PM, Josu Vilda <[email protected]> wrote:
>
>> Hi guys,
>> I am launching this playbook but it does not give an error and it does
>> not do what it is supposed to do.
>> How can I debug the error?
>>
>> - name: Customize Domain
>> vmware_vm_shell:
>> hostname: '{{ VCENTER }}'
>> username: '{{ DOMAIN_VCENTER }}\user'
>> password: '*********'
>> datacenter: '{{ DATACENTER }}'
>> folder: '/{{ DATACENTER }}/vm'
>> validate_certs: no
>> vm_id: '{{ NOMBRE }}'
>> vm_id_type: vm_name
>> vm_username: 'adm'
>> vm_password: 'temporal'
>> vm_shell_cwd: 'c:\temp\'
>> vm_shell: 'c:\windows\system32\wbem\wmic.exe'
>> vm_shell_args: 'ComputerSystem where name={{ NOMBRE }} call
>> joindomainorworkgroup fjoinoptions=3 name={{ DOMINIO }}.$
>> register: value
>> async: 600
>> poll: 5
>> tags:
>> - auto
>>
>> - name : debug
>> debug:
>> var: value
>> verbosity: 3
>> tags:
>> - auto
>>
>> Return:
>>
>>
>> TASK [Customize Domain username={{ DOMAIN_VCENTER }}\adm, datacenter={{
>> DATACENTER }}, vm_password=temporal, vm_shell_cwd=c:\temp\,
>> vm_shell_args=ComputerSystem where name={{ NOMBRE }} call
>> joindomainorworkgroup fjoinoptions=3 name={{ DOMINIO }}.domain.local
>> username={{ DOMINIO }}.domain\adm Password=*******, hostname={{ VCENTER }},
>> vm_username=adm, vm_shell=c:\windows\system32\wbem\wmic.exe,
>> validate_certs=False, vm_id_type=vm_name, folder=/{{ DATACENTER }}/vm,
>> password=*******, vm_id={{ NOMBRE }}] ***
>> task path: /etc/ansible/playbooks/vCenter/Despliegue.yml:148
>> changed: [localhost] => {"ansible_job_id": "503299328214.47633",
>> "changed": true, "finished": 1, "msg": 2500, "uuid":
>> "423c4b0f-3dd5-b3b3-6adc-23314cc4054c"}
>>
>> TASK [debug var=value, verbosity=3] ******************************
>> ***********************************************************
>> task path: /etc/ansible/playbooks/vCenter/Despliegue.yml:169
>> skipping: [localhost] => {"skipped_reason": "Verbosity threshold not
>> met."}
>> META: ran handlers
>> META: ran handlers
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/7ac713f7-e86d-4977-9c90-d406b4a05aa2%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/7ac713f7-e86d-4977-9c90-d406b4a05aa2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Karl Auer
>
> Email : [email protected]
> Website: http://2pisoftware.com
>
> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/hXazxf6WjiQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CA%2B%2BT08RXfm2Kg8OF60HBXAaYkfOxjfK
> n11vHcRt23Gs-OdgafA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08RXfm2Kg8OF60HBXAaYkfOxjfKn11vHcRt23Gs-OdgafA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAEhJxhQxxO8yPrDYZLFBUTCjdSrpSCCaEyXjtFAwUYYV3Wo6QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.