molecule is not able to load the module utilities #3561
Unanswered
gyuvaraj10
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have module utilities in my root project folder under "library" and the module_utils property is configured in ansible.cfg under root directory. Now when I run command, the molecule is not able to understand the module utilities directory and throwing the following error.
Root Project folder:
ansible.cfg:
molecule.yml:
dependency:
name: galaxy
driver:
name: delegated
options:
managed: False
ansible_connection_option:
ansible_connection: local
platforms:
provisioner:
name: ansible
log: True
config_options:
defaults:
module_utils: ../../../library
env:
ANSIBLE_CONFIG: ../../../ansible.cfg
ANSIBLE_ROLES_PATH: $ANSIBLE_ROLES_PATH:../../../../roles
ANSIBLE_LIBRARY: $ANSIBLE_LIBRARY:../../../../library
options:
vvv: True
inventory:
links:
group_vars: ../../../../group_vars/
hosts: ../../../../inventories/single-machine/hosts
host_vars: ../../../../inventories/single-machine/host_vars/
verifier:
name: ansible
lint:
name: ansible-lint
molecule test: output:
fatal: [localhost]: FAILED! => {"msg": "Could not find imported module support code for ansible.modules.start_on_demand_backup. Looked for (['ansible.module_utils.aws_deployment_util.AWSDeploymentUtility', 'ansible.module_utils.aws_deployment_util'])"}
Note: none of the configuration added to ansible.cfg is available to molecule.
Beta Was this translation helpful? Give feedback.
All reactions