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.
26 lines
698 B
YAML
26 lines
698 B
YAML
4 years ago
|
# The pulp container has a long start up time.
|
||
|
# The first task to interact with pulp needs to wait until it responds appropriately.
|
||
|
- name: Wait for Pulp API
|
||
|
uri:
|
||
|
url: '{{ pulp_api }}/pulp/api/v3/distributions/ansible/ansible/'
|
||
|
user: '{{ pulp_user }}'
|
||
|
password: '{{ pulp_password }}'
|
||
|
force_basic_auth: true
|
||
|
register: this
|
||
|
until: this is successful
|
||
|
delay: 1
|
||
|
retries: 60
|
||
|
|
||
|
- name: Verify Galaxy NG server
|
||
|
uri:
|
||
|
url: "{{ galaxy_ng_server }}"
|
||
|
user: '{{ pulp_user }}'
|
||
|
password: '{{ pulp_password }}'
|
||
|
force_basic_auth: true
|
||
|
|
||
|
- name: Verify Pulp server
|
||
|
uri:
|
||
|
url: "{{ pulp_server }}"
|
||
|
status_code:
|
||
|
- 404 # endpoint responds without authentication
|