I've been trying to use the Ansible Python API as explained in their official docs here. The problem is, when I call main() Ansible returns an error saying:
the connection plugin '<class 'ansible.utils.sentinel.Sentinel'>' was not found
I'm running ansible-base version 2.10.8.
I've been stuck with this for two days now. I saw someone with the same issue over at Ansible's github page here and it seems like they don't even support their own Python API.
Can anyone suggest how I could solve this problem?
it seems they don't support their own Python API=> in the notes on the top of the documentation you l linked in your very first paragraph:This API is intended for internal Ansible use. Ansible may make changes to this API at any time that could break backward compatibility with older versions of the API. Because of this, external use is not supported by Ansible