Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Problems with roles requirements setting #2

Answered by ansibleguy
dderemiah asked this question in Q&A
Discussion options

You must be logged in to vote

Greetings @dderemiah

The 'roles' list is a flat list of strings. See: requirements_persistent.yml

You can add the 'scm' and 'version' to the role-string as seen in the Ansible User-Guide.

Example:

persistent_requirements: true
requirements:
  collections: []
  roles:
    - 'git+https://github.com/ansibleguy/sw_semaphore,821cd2f711dbbad67d1d56a2bf1f10681be5a2a5'

Of course - we could refactor the requirements-task to handle the attributes you mentioned.

Replies: 1 comment

Comment options

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