mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 21:50:01 +00:00
fix: Change secret failed, no module named libs
This commit is contained in:
parent
8f78919b3e
commit
0fed338277
@ -15,6 +15,7 @@ class BaseRunner(WorkPostRunCleaner):
|
||||
def setup_env():
|
||||
ansible_config_path = os.path.join(settings.APPS_DIR, 'libs', 'ansible', 'ansible.cfg')
|
||||
ansible_modules_path = os.path.join(settings.APPS_DIR, 'libs', 'ansible', 'modules')
|
||||
os.environ.setdefault('PYTHONPATH', settings.APPS_DIR)
|
||||
os.environ.setdefault('ANSIBLE_FORCE_COLOR', 'True')
|
||||
os.environ.setdefault('ANSIBLE_CONFIG', ansible_config_path)
|
||||
os.environ.setdefault('ANSIBLE_LIBRARY', ansible_modules_path)
|
||||
|
Loading…
Reference in New Issue
Block a user