ansible group not working

40 views
Skip to first unread message

Tony Wong

unread,
Mar 7, 2021, 9:24:10 PM3/7/21
to Ansible Project
any idea why the below is failing for my hosts pa-mgt01?


Screen Shot 2021-03-07 at 6.24.28 PM.png

esxi...@gmail.com

unread,
Mar 7, 2021, 10:54:25 PM3/7/21
to Ansible Project
check why the windows box ansible doing ssh .. that is your clue

Luca 'remix_tj' Lorenzetto

unread,
Mar 8, 2021, 2:28:55 AM3/8/21
to ansible...@googlegroups.com
Hello,

Did you check if your inventory is set up properly? you require to specify the connection mode for windows hosts.

You should read the doc first of all:


and then check with ansible-inventory if your inventory has all the appropriated vars.

Luca


On Mon, Mar 8, 2021 at 3:24 AM Tony Wong <tdub...@gmail.com> wrote:
any idea why the below is failing for my hosts pa-mgt01?


Screen Shot 2021-03-07 at 6.24.28 PM.png

--
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/1477bd34-e840-4c15-a788-db651f286fe0n%40googlegroups.com.


--
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)
 
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenze...@gmail.com>

Tony Wong

unread,
Mar 8, 2021, 8:42:44 AM3/8/21
to ansible...@googlegroups.com
for the host pa-mgt01 when i put it in windows group in the host file it works. when i put put in [mgmt] it does not work

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/UEBAlv00b9s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKuX69pZVFATSLwsBY767fTx-iUXsR5C2s07DNExDKb00tJc-Q%40mail.gmail.com.

Luca 'remix_tj' Lorenzetto

unread,
Mar 8, 2021, 9:00:26 AM3/8/21
to ansible...@googlegroups.com
Hello,

read the doc, please. Your inventory setup is missing some variables for that group.


Luca

Tony Wong

unread,
Mar 8, 2021, 9:37:10 AM3/8/21
to ansible...@googlegroups.com
I am using kerberos. this is my group_vars file. 

what am i missing?

i dont understand



Screen Shot 2021-03-08 at 6.36.47 AM.png

Luca 'remix_tj' Lorenzetto

unread,
Mar 8, 2021, 9:49:11 AM3/8/21
to ansible...@googlegroups.com
Hello,

you're applying that vars to windows group only, so moving that host to another group doesn't also move the connection variables. You should study more in depth how inventories and variables work.

Luca

Brian Coca

unread,
Mar 8, 2021, 11:40:32 AM3/8/21
to Ansible Project
You probably want to put it in BOTH groups


--
----------
Brian Coca

Tony Wong

unread,
Mar 8, 2021, 1:19:37 PM3/8/21
to ansible...@googlegroups.com
yes that was it! Thank you

--
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/UEBAlv00b9s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages