zuul-jobs/roles/ansible-galaxy-import/tasks/main.yaml

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'] }}"