{"action":"created","issue":{"url":"https://api.github.com/repos/metacloud/molecule/issues/1121","repository_url":"https://api.github.com/repos/metacloud/molecule","labels_url":"https://api.github.com/repos/metacloud/molecule/issues/1121/labels{/name}","comments_url":"https://api.github.com/repos/metacloud/molecule/issues/1121/comments","events_url":"https://api.github.com/repos/metacloud/molecule/issues/1121/events","html_url":"https://github.com/metacloud/molecule/issues/1121","id":296071745,"number":1121,"title":"Galaxy dependencies installed in ~/.ansible rather than .../.molecule","user":{"login":"bkeyser","id":6879440,"avatar_url":"https://avatars3.githubusercontent.com/u/6879440?v=4","gravatar_id":"","url":"https://api.github.com/users/bkeyser","html_url":"https://github.com/bkeyser","followers_url":"https://api.github.com/users/bkeyser/followers","following_url":"https://api.github.com/users/bkeyser/following{/other_user}","gists_url":"https://api.github.com/users/bkeyser/gists{/gist_id}","starred_url":"https://api.github.com/users/bkeyser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkeyser/subscriptions","organizations_url":"https://api.github.com/users/bkeyser/orgs","repos_url":"https://api.github.com/users/bkeyser/repos","events_url":"https://api.github.com/users/bkeyser/events{/privacy}","received_events_url":"https://api.github.com/users/bkeyser/received_events","type":"User","site_admin":false},"labels":[{"id":288133125,"url":"https://api.github.com/repos/metacloud/molecule/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-10T04:09:21Z","updated_at":"2018-02-19T20:22:35Z","closed_at":"2018-02-19T20:22:35Z","author_association":"NONE","body":"# Issue Type\r\n\r\n- Bug report (perhaps a question)\r\n\r\n# Molecule and Ansible details\r\n\r\n```\r\n$ ansible --version\r\nansible 2.4.3.0\r\n  config file = None\r\n  configured module search path = [u'/home/bkeyser/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/ansible\r\n  executable location = /home/bkeyser/projects/config-mgmt/venv/bin/ansible\r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n```\r\n\r\n```\r\n$ molecule --version\r\nmolecule, version 2.8.0\r\n```\r\n\r\n- Molecule installation method: pip\r\n- Ansible installation method: pip\r\n\r\n# Desired Behaviour\r\n\r\nSpecifying a galaxy module in requirements.yml should place it in a directory of the ROLE_PATH visible to molecule rather than to Ansible.\r\n\r\n# Actual Behaviour (Bug report only)\r\n\r\nIn looking at the documentation for v2.8.0, I first attempted to add role-file as an option to dependency (with the default of galaxy).  However, I found that this was not needed provided that requirements.yml was in the scenario directory (not sure this matters, but thought I would mention it).\r\n\r\nWhen running converge, it appears as if the dependency is installed in ~/.ansible rather than a directory on molecule's ROLE_PATH.\r\n\r\n```\r\n$ molecule --debug converge\r\n--> Test matrix\r\n    \r\n└── default\r\n    ├── dependency\r\n    ├── create\r\n    ├── prepare\r\n    └── converge\r\n    \r\n--> Scenario: 'default'\r\n--> Action: 'dependency'\r\nDEBUG: ANSIBLE ENVIRONMENT\r\n--- {}\r\n\r\nDEBUG: MOLECULE ENVIRONMENT\r\n---\r\nMOLECULE_DEBUG: 'True'\r\nMOLECULE_DEPENDENCY_NAME: galaxy\r\nMOLECULE_DRIVER_NAME: docker\r\nMOLECULE_EPHEMERAL_DIRECTORY: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule\r\nMOLECULE_FILE: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/molecule.yml\r\nMOLECULE_INSTANCE_CONFIG: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/instance_config.yml\r\nMOLECULE_INVENTORY_FILE: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml\r\nMOLECULE_LINT_NAME: yamllint\r\nMOLECULE_PROVISIONER_NAME: ansible\r\nMOLECULE_SCENARIO_DIRECTORY: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default\r\nMOLECULE_SCENARIO_NAME: default\r\nMOLECULE_VERIFIER_NAME: testinfra\r\n\r\nDEBUG: SHELL REPLAY\r\nMOLECULE_DEBUG=True MOLECULE_DEPENDENCY_NAME=galaxy MOLECULE_DRIVER_NAME=docker MOLECULE_EPHEMERAL_DIRECTORY=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule MOLECULE_FILE=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/molecule.yml MOLECULE_INSTANCE_CONFIG=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/instance_config.yml MOLECULE_INVENTORY_FILE=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml MOLECULE_LINT_NAME=yamllint MOLECULE_PROVISIONER_NAME=ansible MOLECULE_SCENARIO_DIRECTORY=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default MOLECULE_SCENARIO_NAME=default MOLECULE_VERIFIER_NAME=testinfra\r\n\r\nDEBUG: COMMAND\r\n/home/bkeyser/projects/config-mgmt/venv/bin/ansible-galaxy install --role-file=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/requirements.yml --roles-path=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/roles --force -vvv\r\n\r\n    ansible-galaxy 2.4.3.0\r\n      config file = None\r\n      configured module search path = [u'/home/bkeyser/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n      ansible python module location = /home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/ansible\r\n      executable location = /home/bkeyser/projects/config-mgmt/venv/bin/ansible-galaxy\r\n      python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n    No config file found; using defaults\r\n    Opened /home/bkeyser/.ansible_galaxy\r\n    found role {'scm': None, 'src': 'geerlingguy.repo-epel', 'version': None, 'name': 'geerlingguy.repo-epel'} in yaml file\r\n    Processing role geerlingguy.repo-epel \r\n    - changing role geerlingguy.repo-epel from 1.2.2 to unspecified\r\n    Opened /home/bkeyser/.ansible_galaxy\r\n    - downloading role 'repo-epel', owned by geerlingguy\r\n    https://galaxy.ansible.com/api/v1/roles/?owner__username=geerlingguy&name=repo-epel\r\n    https://galaxy.ansible.com/api/v1/roles/436/versions/?page_size=50\r\n    - downloading role from https://github.com/geerlingguy/ansible-role-repo-epel/archive/1.2.2.tar.gz\r\n    - extracting geerlingguy.repo-epel to /home/bkeyser/.ansible/roles/geerlingguy.repo-epel\r\n    - geerlingguy.repo-epel (1.2.2) was installed successfully\r\nDependency completed successfully.\r\n--> Scenario: 'default'\r\n--> Action: 'create'\r\nSkipping, instances already created.\r\n--> Scenario: 'default'\r\n--> Action: 'prepare'\r\nSkipping, instances already prepared.\r\n--> Scenario: 'default'\r\n--> Action: 'converge'\r\nDEBUG: ANSIBLE ENVIRONMENT\r\n---\r\nANSIBLE_CONFIG: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible.cfg\r\nANSIBLE_FILTER_PLUGINS: /home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/molecule/provisioner/ansible/plugins/filters:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/plugins/filters:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/plugins/filters\r\nANSIBLE_LIBRARY: /home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/molecule/provisioner/ansible/plugins/libraries:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/library:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/library\r\nANSIBLE_ROLES_PATH: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/roles:/home/bkeyser/projects/config-mgmt/roles\r\n\r\nDEBUG: MOLECULE ENVIRONMENT\r\n---\r\nMOLECULE_DEBUG: 'True'\r\nMOLECULE_DEPENDENCY_NAME: galaxy\r\nMOLECULE_DRIVER_NAME: docker\r\nMOLECULE_EPHEMERAL_DIRECTORY: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule\r\nMOLECULE_FILE: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/molecule.yml\r\nMOLECULE_INSTANCE_CONFIG: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/instance_config.yml\r\nMOLECULE_INVENTORY_FILE: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml\r\nMOLECULE_LINT_NAME: yamllint\r\nMOLECULE_PROVISIONER_NAME: ansible\r\nMOLECULE_SCENARIO_DIRECTORY: /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default\r\nMOLECULE_SCENARIO_NAME: default\r\nMOLECULE_VERIFIER_NAME: testinfra\r\n\r\nDEBUG: SHELL REPLAY\r\nANSIBLE_CONFIG=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible.cfg ANSIBLE_FILTER_PLUGINS=/home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/molecule/provisioner/ansible/plugins/filters:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/plugins/filters:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/plugins/filters ANSIBLE_LIBRARY=/home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/molecule/provisioner/ansible/plugins/libraries:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/library:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/library ANSIBLE_ROLES_PATH=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/roles:/home/bkeyser/projects/config-mgmt/roles MOLECULE_DEBUG=True MOLECULE_DEPENDENCY_NAME=galaxy MOLECULE_DRIVER_NAME=docker MOLECULE_EPHEMERAL_DIRECTORY=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule MOLECULE_FILE=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/molecule.yml MOLECULE_INSTANCE_CONFIG=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/instance_config.yml MOLECULE_INVENTORY_FILE=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml MOLECULE_LINT_NAME=yamllint MOLECULE_PROVISIONER_NAME=ansible MOLECULE_SCENARIO_DIRECTORY=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default MOLECULE_SCENARIO_NAME=default MOLECULE_VERIFIER_NAME=testinfra\r\n\r\nDEBUG: COMMAND\r\n/home/bkeyser/projects/config-mgmt/venv/bin/ansible-playbook --inventory=/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml --diff /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/playbook.yml -vvv\r\n\r\n    ansible-playbook 2.4.3.0\r\n      config file = /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible.cfg\r\n      configured module search path = [u'/home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/molecule/provisioner/ansible/plugins/libraries', u'/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/library', u'/home/bkeyser/projects/config-mgmt/roles/ansible-dev/library']\r\n      ansible python module location = /home/bkeyser/projects/config-mgmt/venv/lib/python2.7/site-packages/ansible\r\n      executable location = /home/bkeyser/projects/config-mgmt/venv/bin/ansible-playbook\r\n      python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n    Using /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible.cfg as config file\r\n    Parsed /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/ansible_inventory.yml inventory source with yaml plugin\r\nERROR! the role 'geerlingguy.repo-epel' was not found in /home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/roles:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/.molecule/roles:/home/bkeyser/projects/config-mgmt/roles:/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default\r\n\r\nThe error appears to have been in '/home/bkeyser/projects/config-mgmt/roles/ansible-dev/molecule/default/playbook.yml': line 5, column 7, but may\r\nbe elsewhere in the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n  roles:\r\n    - geerlingguy.repo-epel\r\n      ^ here\r\n\r\nERROR:\r\n```"},"comment":{"url":"https://api.github.com/repos/metacloud/molecule/issues/comments/366794467","html_url":"https://github.com/metacloud/molecule/issues/1121#issuecomment-366794467","issue_url":"https://api.github.com/repos/metacloud/molecule/issues/1121","id":366794467,"user":{"login":"retr0h","id":9895,"avatar_url":"https://avatars1.githubusercontent.com/u/9895?v=4","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T20:22:35Z","updated_at":"2018-02-19T20:22:35Z","author_association":"MEMBER","body":"Closing this out as there isn't much I can do about this, and Ansible has provided a fix upstream."}}
{"actor":{"display_login":"retr0h"}}