Other Configuring jails via ansible, module not found

Alain De Vos

Son of Beastie

Reaction score: 755
Messages: 2,503

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.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,687
Messages: 39,280

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.
 
OP
Alain De Vos

Alain De Vos

Son of Beastie

Reaction score: 755
Messages: 2,503

Indeed. After installing py37-pexpect module on the jail everything works fine.
 
Top