Thank you. Yes. we can fetch using powershell.
I was wondering why wild card support given in the documentation is not
working. Now I am able to use '*' like given in the first example below and
it works. But the second example given in the documentation doesn't work.
You proably need to fetch the adaptor name which you can do with
Get-NetAdapter powershell command
https://docs.microsoft.com/en-us/powershell/module/netadapter/get-netadapter?view=win10-ps
then pass that to the module parameters.
On Wednesday, August 12, 2020 at 11:39:57 AM UTC+1, Prakash PMS
ansible 2.9.6 on ubuntu 20.04
On Wednesday, 12 August 2020 16:05:44 UTC+5:30, Dick Visser wrote:
>
> what ansible version are you running
>
> On Wed, 12 Aug 2020 at 12:15, Prakash PMS > wrote:
> >
> > Hi,
> >
> > when wild card is used for adapter_names in win_dns_client to set DNS in
>
what ansible version are you running
On Wed, 12 Aug 2020 at 12:15, Prakash PMS wrote:
>
> Hi,
>
> when wild card is used for adapter_names in win_dns_client to set DNS in
> windows machines, it is not recognizing the interface.
>
> tasks:
> - name: Set DNS to Primary Domain Controller
>
Hi,
when wild card is used for adapter_names in win_dns_client to set DNS in
windows machines, it is not recognizing the interface.
tasks:
- name: Set DNS to Primary Domain Controller
win_dns_client:
adapter_names: 'tap*'
ipv4_addresses: '{{ ad_domain_server }}'
Following