Use plain name instead of variable.

This commit is contained in:
Robert de Bock 2023-01-27 08:53:17 +01:00
parent 25ab020dbb
commit f430dfeb79
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
Authorization: "Bearer {{ github_token }}"
register: github_repo
- name: Get a detailed list of owned GitLab projects
- name: Get details of GitLab project
uri:
url: "https://gitlab.com/api/v4/projects?owned=true&search={{ role }}"
method: GET
@ -39,7 +39,7 @@
return_content: yes
register: gitlab_projects
- name: Pick project_ids from GitLab projects
- name: Pick project_ids from GitLab project
set_fact:
gitlab_projects: "{{ gitlab_projects.json | selectattr('name', 'equalto', role) | list }}"

View File

@ -23,6 +23,6 @@ molecule:
galaxy:
script:
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} ${CI_PROJECT_NAMESPACE} ${CI_PROJECT_NAME}
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ gitlab_namespace }} ${CI_PROJECT_NAME}
rules:
- if: $CI_COMMIT_TAG != null