Other Configuring jails via ansible, module not found

Alain De Vos

Son of Beastie

Reaction score: 870
Messages: 2,826

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: 13,131
Messages: 39,735

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: 870
Messages: 2,826

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