You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ansible-galaxy-collection/tasks/galaxy_ng.yml

31 lines
762 B
YAML

- name: Create galaxy_ng namespaces
uri:
url: '{{ pulp_api }}/api/galaxy/v3/_ui/namespaces/'
method: POST
body_format: json
body:
name: '{{ namespace }}'
groups:
- system:partner-engineers
status_code:
- 201
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
loop: '{{ collection_list|map(attribute="namespace")|unique + publish_namespaces }}'
loop_control:
loop_var: namespace
- name: Get galaxy_ng token
uri:
url: '{{ pulp_api }}/api/galaxy/v3/auth/token/'
method: POST
body_format: json
body: {}
status_code:
- 200
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
register: galaxy_ng_token