Member-only story
Troubleshooting Ansible: Resolving the “PowerShell Incompatible with the Sudo Become Plugin” Error
Navigating Ansible Challenges: Resolving the “PowerShell Incompatibility with Sudo Become Plugin” Error
4 min readDec 17, 2023
Introduction
Welcome back to Ansible Pilot! I’m Luca Berton, and today we’re diving into Ansible troubleshooting, focusing on the error that states “the PowerShell shell family is incompatible with the sudo become plugin.” Join me as we explore how to reproduce, troubleshoot, and fix this runtime error in Ansible.
The Demo
To better understand and solve the “the PowerShell shell family is incompatible with the sudo become plugin” error, let’s jump into a live demo.
Error Code
# incompatiblesudo_error.yml
---
- name: win_reboot module demo
hosts: all
become: true
tasks:
- name: reboot host(s)
ansible.windows.win_reboot:
Error Execution
$ ansible-playbook -i inventory incompatiblesudo_error.yml
PLAY [win_reboot module demo] *********************************************************************…