The powershell shell family is incompatible with the sudo become plugin

5,251 views
Skip to first unread message

Jenisha T

unread,
Apr 30, 2020, 2:51:37 AM4/30/20
to Ansible Project
Hi 

I m configuring windows host on windows 10 virtual machine. My control node is Redhat OS 8 virtual machine. This is for the developer testing setup. I get below error when I do 
$ansible -vvv  winsvr -i /etc/ansible/hosts -m win_ping

"The powershell shell family is incompatible with the sudo become plugin". Why do I get this error. Any help to fix this issue is appreciated

Matt Martz

unread,
Apr 30, 2020, 10:31:11 AM4/30/20
to ansible...@googlegroups.com
This indicates that in your inventory you have indicated `ansible_become=true`, however you have not specified `ansible_become_method=runas` for the Windows hosts.

--
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/11d4a928-365e-4b5f-9287-44c4ef4ba745%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

T. JENISHA

unread,
May 1, 2020, 12:50:22 AM5/1/20
to ansible...@googlegroups.com
Thankyou Matt your solution worked perfectly.


Best Regards
Jenisha T
Whatsapp: +91 07598087866





kishore madasu

unread,
May 14, 2020, 11:57:25 PM5/14/20
to Ansible Project
Hi,

I am also getting the same error but i couldn't mentioned 'ansible_become=true' in my inventory file. where should i need to specify "ansible_become_method=runas".Plz help me sortout this issue. Thank you in advance.

On Thursday, 30 April 2020 12:21:37 UTC+5:30, Jenisha T wrote:
Hi 

I m configuring windows host on windows Server 2019 virtual machine. My control node is Redhat OS 7.x virtual machine. This is for the developer testing setup. I get below error when I do 
$ansible   winsvr  -m win_ping

Dick Visser

unread,
May 15, 2020, 12:30:06 AM5/15/20
to ansible...@googlegroups.com
Please don't hijack a thread just because you see a similar error. 
Instead start a new one, which will also allow you to provide the information that is needed to answer your question (playbook, inventory, etc). 
In any case make sure you first read 
https://docs.ansible.com/ansible/latest/user_guide/become.html and understand what is means, especially the windows sections at the bottom. 

--
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.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages