mirror of https://github.com/ansible/ansible.git
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.
31 lines
762 B
YAML
31 lines
762 B
YAML
4 years ago
|
- 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
|