zuul-jobs/roles/ansible-galaxy-import/tasks/main.yaml
Paul Belanger c662ef5bd9 Fix typo with ansible_galaxy_info.token
Otherwise, we cannot get the token properly from the secret.

Change-Id: I5d2b761fbc94aab6077653b0bd2c209c53dbd322
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-10-12 16:59:20 -04:00

7 lines
413 B
YAML

- name: Login into Ansible Galaxy
command: "{{ ansible_galaxy_executable }} -s {{ ansible_galaxy_server }} login --github-token {{ ansible_galaxy_info.token }}"
no_log: True
- name: Import role into Ansible Galaxy
command: "{{ ansible_galaxy_executable }} -s {{ ansible_galaxy_server }} import --branch {{ ansible_galaxy_branch }} {{ zuul.project['name'].split('/')[0] }} {{ zuul.project['short_name'] }}"