vmware_host_active_directory does not have a parameter called 'ad_username'
its actually 'ad_user'

On Tue, Apr 14, 2020 at 9:14 PM Tony Wong <tdubb...@gmail.com> wrote:

> Hi
>
> Am I not allowed to have multiple modules in same yml file?
>
> ---
> # Add a ESXi Host to a Datacenter using the 'vmware_host' module
> - name: Join ESXi host to AD
>   vmware_host_active_directory:
>     hostname: '{{ vcenter_hostname }}'
>     username: '{{ vcenter_username }}'
>     password: '{{ vcenter_password }}'
>     esxi_hostname: '{{ esxi_hostname }}'
>     ad_domain: domain.com
>     ad_username: u...@domain.com
>     ad_password: xxxxxx
>     ad_state: present
>     validate_certs: no
>   delegate_to: localhost
>
> - name: Set NTP servers for an ESXi Host
>   vmware_host_ntp:
>     hostname: '{{ vcenter_hostname }}'
>     username: '{{ vcenter_username }}'
>     password: '{{ vcenter_password }}'
>     esxi_hostname: '{{ esxi_hostname }}'
>     state: present
>     ntp_servers:
>         - 0.pool.ntp.org
>         - 1.pool.ntp.org
>   delegate_to: localhost
>
> - name: Manage multiple settings for an ESXi host
>   vmware_host_config_manager:
>     hostname: '{{ vcenter_hostname }}'
>     username: '{{ vcenter_username }}'
>     password: '{{ vcenter_password }}'
>     esxi_hostname: '{{ esxi_hostname }}'
>     options:
>         'VMkernel.Boot.hyperthreadingMitigation': true
>   delegate_to: localhost
>
>
>
> when i run my playbook it gives this
>
>
>
>
> On Tue, Apr 14, 2020 at 8:30 AM David Foley <david.fo...@mycit.ie> wrote:
>
>> Hi Tony:
>>
>> I think you need to look at powercli for ESXi Configuration:
>>
>> On Tuesday, April 14, 2020 at 2:28:33 PM UTC+1, Tony Wong wrote:
>>>
>>> how do i create a ansible vmware playbook with following
>>>
>>>
>>> - join esx host to domain
>>> - setup ntp with - 0.pool.ntp.org, 1.pool.ntp.org
>>> - set advance settings on host : VMkernel.Boot.hyperthreadingMitigation
>>> to True
>>> - reboot host
>>>
>>>
>>>
>>> --
>> 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-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/620e0b8b-728a-4e63-af4b-72b12b7fbe8d%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/620e0b8b-728a-4e63-af4b-72b12b7fbe8d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CALmkhkrkiyhFfFdYGnnNPeH2x1bLKmMk2Y_EDojFyWE2Q3Gu%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CALmkhkrkiyhFfFdYGnnNPeH2x1bLKmMk2Y_EDojFyWE2Q3Gu%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHo6xRxEjUrXpDRX2x__fQ9VSJtt2gwLnLH1qB%3DzXWQmSQ%40mail.gmail.com.

Reply via email to