Other Configuring jails via ansible, module not found

I want to configure a jail using ansible. But ansible complains that the module is not found.
Code:
 ModuleNotFoundError: No module named 'pexpect'
This altough "py37-pexpect-4.8.0" is installed.
I think I must tell ansible how to find the module.
 
Is the module installed in the jail or only on the host? For Ansible to work properly a bunch of Python modules need to be installed on the "client" too.
 
Back
Top