"failed to open a SFTP connection (Garbage packet received)"

I’m tring to run our corporate ansible setup on my FC31 laptop. In the “staging” configuration, main.yml, I have hosts: localhost. My ssh key is in root’s authorized_keys file.

I run and get:

ansible-playbook main.yml

PLAY [Common tasks (various inc auth, firewall and update)] ********************

TASK [Gathering Facts] *********************************************************
[WARNING]: Unhandled error in Python interpreter discovery for host localhost:
unexpected output from Python interpreter discovery
fatal: [localhost]: FAILED! => {“msg”: “failed to open a SFTP connection (Garbage packet received)”}

PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Any idea what’s going on? There’s no mention of sftp in my playbooks, I have vsftp installed.

Never mind. .bashrc was outputting something and that blew sftp up.