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

Luca Berton
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] *********************************************************************…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet