Skip to content

Issue testing roles that depend on collections. #2750

Answered by snooyen
snooyen asked this question in Q&A
Discussion options

You must be logged in to vote

Found it. Had to modify molecule.yml to set the ANSIBLE_COLLECTIONS_PATH environment variable on my provisioner.

provisioner:
  name: ansible
  log: true
  lint: {}
  inventory:
    host_vars:
      localhost:
        ansible_python_interpreter: '{{ ansible_playbook_python }}'
  env:
    ANSIBLE_FORCE_COLOR: 'true'
    ANSIBLE_COLLECTIONS_PATHS: '../../../../'
  playbooks:
    create: create.yml
    converge: converge.yml
    destroy: destroy.yml

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by snooyen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant