`The powershell shell family is incompatible with the sudo become plugin`
IntermediateTroubleshootingCloud, AWX, Windows and Molecule
Answer
Likely causes → become: true with the default sudo method was inherited by Windows hosts, usually from group_vars/all or play-level settings shared with Linux.
Fix →
# group_vars/windows.yml
ansible_connection: winrm
ansible_shell_type: powershell
ansible_become_method: runas
ansible_become_user: SYSTEM # only where elevation is really needed
Better, do not set become for Windows plays at all unless a task needs it.
Prevent → Keep separate plays and group variables for Linux and Windows, and do not put connection or become settings in all.
More on Cloud, AWX, Windows and Molecule
`Failed to import the required Python library (botocore and boto3) on web01's Python /usr/bin/python3.`Beginner`[WARNING]: * Failed to parse inventory/aws.yml with auto plugin: inventory source 'inventory/aws.yml' could not be verified by inventory plugin 'amazon.aws.aws_ec2'`IntermediateThe `aws_ec2` inventory parses without errors but returns zero hostsIntermediate`Failed to describe instances: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation` or `(ExpiredToken)`IntermediateDynamic inventory finds the instances, but every host is `UNREACHABLE`IntermediateUsing the SSM connection plugin fails with `SessionManagerPlugin is not found` or hangs on file transferAdvanced