-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine best location for role dependencies #153
Comments
Note also that it is possible to list both collections and roles in |
Also note that an |
There is a fly in the ointment: ansible/proposals#57 (comment) It appears that collections are not really supported as dependencies in This causes us a major problem, since in some cases |
ansible/ansible#76030 is also of note, particularly ansible/ansible#76030 (comment). |
ansible-galaxy does not appear to allow them there. See here for more details: cisagov/skeleton-ansible-role#153 (comment)
ansible-galaxy does not appear to allow roles to depend on collections. See here for more details: #153 (comment)
ansible-galaxy does not appear to allow them there. See here for more details: cisagov/skeleton-ansible-role#153 (comment)
💡 Summary
We should determine whether all role dependencies should be listed in
meta/requirements.yml
or bothmeta/requirements.yml
andmeta/main.yml
.Motivation and context
Ansible Galaxy currently allows role dependencies to be listed in both
meta/requirements.yml
andmeta/main.yml
. The former allows for both collection and role dependencies, while the latter allows for only role dependencies. A key difference is that dependencies listed inmeta/main.yml
are installed before the role is installed, while the dependencies listed inmeta/requirements.yml
are made available to the role but not automatically installed.Right now we are defaulting to listing dependencies in
meta/main.yml
, and listing dependencies inmeta/requirements.yml
in cases whereOne can imagine a world in which all dependencies are listed in
meta/requirements.yml
and we manually install the dependencies in the role tasks for maximum control and flexibility. It is currently unclear if this is The Way Forward, so we should keep an eye onansible-galaxy
changes and recommended best practices until the situation becomes clearer.The text was updated successfully, but these errors were encountered: