Trying to add variable while running ad-hoc command against window server

361 views
Skip to first unread message

Kumar Guhan

unread,
Jan 18, 2018, 6:27:25 AM1/18/18
to AWX Project
 I am trying to just run a win_ping command with a windows server through the UI, while trying to specify in the "Extra Variables" text area the ansible_user, ansible_connection and ansible_port variables I get the message " ansible_user, ansible_connection, ansible_port are prohibited from use in ad hoc commands".

Any idea where this needs to be specified otherwise, it thinks the server is linux and tries SSH by default.


Thanks,
Kumar

awx1.PNG
Auto Generated Inline Image 1

Christopher Meyers

unread,
Jan 18, 2018, 7:20:03 AM1/18/18
to Kumar Guhan, AWX Project
Allowing those variables to be changed presents a security problem when considering the tower security model and how the adhoc feature is used in conjunction with inventory. 

You can modify those variables on the associated inventory, groups, or hosts. 


--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/ca22bf95-aca1-405b-a035-56ac6646739a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kumar Guhan

unread,
Jan 18, 2018, 7:39:12 AM1/18/18
to AWX Project
I understand the model now. Appreciate the prompt response. Thanks!



On Thursday, 18 January 2018 12:20:03 UTC, Christopher Meyers wrote:
Allowing those variables to be changed presents a security problem when considering the tower security model and how the adhoc feature is used in conjunction with inventory. 

You can modify those variables on the associated inventory, groups, or hosts. 

On Jan 18, 2018 6:27 AM, "Kumar Guhan" <kumar...@gmail.com> wrote:
 I am trying to just run a win_ping command with a windows server through the UI, while trying to specify in the "Extra Variables" text area the ansible_user, ansible_connection and ansible_port variables I get the message " ansible_user, ansible_connection, ansible_port are prohibited from use in ad hoc commands".

Any idea where this needs to be specified otherwise, it thinks the server is linux and tries SSH by default.


Thanks,
Kumar

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages