You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after
**Remove ability to configure collections-path and roles-path for dependency (#3956) ** @ssbarnea
I am as developer of ansible roles can not use my development location set in ansible.cfg as default location for roles.
Molecule fails as some code exists and cannot be updated with ansible-galaxy role install -vr requirements.yml
Starting galaxy role install process
- extracting rhel_subscription to /Users/.../cv-devops/ansible/ansible-roles/rhel_subscription
[WARNING]: - rhel_subscription was NOT installed successfully: the specified role rhel_subscription appears to already exist. Use --force to replace it.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
After forcing update it will removes role as git repository and put just a dependency role!!!
Without forcing i have next error:
DEBUG Validating schema /Users/.../cv-devops/ansible/ansible-roles/environment/molecule/default/molecule.yml.
WARNING Driver ec2 does not provide a schema.
INFO default scenario test matrix: create, prepare, converge, idempotence, side_effect, verify, destroy
INFO Performing prerun with role_name_check=0...
INFO Running ansible-galaxy role install -vr requirements.yml
ERROR Starting galaxy role install process
- extracting rhel_subscription to /Users/.../cv-devops/ansible/ansible-roles/rhel_subscription
Traceback (most recent call last):
File "/Users/.../ansible-core-test/bin/molecule", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/molecule/command/test.py", line 113, in test
base.execute_cmdline_scenarios(scenario_name, args, command_args, ansible_args)
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/molecule/command/base.py", line 113, in execute_cmdline_scenarios
scenario.config.runtime.prepare_environment(
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/ansible_compat/runtime.py", line 609, in prepare_environment
self.install_requirements(Path(req_file), retry=retry, offline=offline)
File "/Users/.../ansible-core-test/lib/python3.11/site-packages/ansible_compat/runtime.py", line 548, in install_requirements
raise AnsibleCommandError(result)
ansible_compat.errors.AnsibleCommandError: Got 1 exit code while running: ansible-galaxy role install -vr requirements.yml
molecule 5.1 and earlier was used some temp location for dependencies in command: ansible-galaxy role install -vr requirements.yml --roles-path /Users/.../.cache/ansible-compat/ba5285/roles
DEBUG Validating schema /Users/.../cv-devops/ansible/ansible-roles/environment/molecule/default/molecule.yml.
WARNING Driver ec2 does not provide a schema.
INFO default scenario test matrix: create, prepare, converge, idempotence, side_effect, verify, destroy
INFO Performing prerun with role_name_check=0...
INFO Running ansible-galaxy role install -vr requirements.yml --roles-path /Users/.../.cache/ansible-compat/ba5285/roles
INFO Set ANSIBLE_LIBRARY=/Users/.../.cache/ansible-compat/ba5285/modules:/Users/.../.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO Set ANSIBLE_COLLECTIONS_PATH=/Users/.../.cache/ansible-compat/ba5285/collections:/Users/.../.ansible/collections:/usr/share/ansible/collections
INFO Set ANSIBLE_ROLES_PATH=/Users/.../.cache/ansible-compat/ba5285/roles:/Users/.../cv-devops/ansible/ansible-roles
INFO Using /Users/.../.cache/ansible-compat/ba5285/roles/eis.environment symlink to current repository in order to enable Ansible to find the role using its expected full name.
INFO Running default > create
....
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
after
**Remove ability to configure collections-path and roles-path for dependency (#3956) ** @ssbarnea
I am as developer of ansible roles can not use my development location set in ansible.cfg as default location for roles.
Molecule fails as some code exists and cannot be updated with
ansible-galaxy role install -vr requirements.yml
After forcing update it will removes role as git repository and put just a dependency role!!!
Without forcing i have next error:
molecule 5.1 and earlier was used some temp location for dependencies in command:
ansible-galaxy role install -vr requirements.yml --roles-path /Users/.../.cache/ansible-compat/ba5285/roles
Beta Was this translation helpful? Give feedback.
All reactions