Okay, thanks. I was trying to ensure against putting the host name twice to
ensure against confusion. I guess I will separate the branches futher by
[branch01_linux] and [branch01_windows]...ect. Thanks for the
clarification. I just wish I could use logic ('if unable to connect ssh
then try winrm') against my hosts
On Friday, October 12, 2018 at 12:39:06 AM UTC-4, Jordan Borean wrote:
>
> Easiest way is to create a Windows group, define the connection plugin in
> that group, and finally add your Windows hosts as children of that group;
>
> [windows:children]
> server01
> server03
> branch02
> ....
>
> [windows:vars]
> ansible_connection=winrm
>
> You can add some more values to configure WinRM if you wish but by default
> you at least need to tell Ansible to use the winrm connection plugin.
>
--
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/5ae1b08e-2468-48eb-8273-abf605456c9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.