Browse Source

Fix URL version for Satellite 6.10

Pulp has been migrated from Pulp2 to Pulp3 in Satellite 6.10,
removing the /pulp/api/v2/status url, new URL is /pulp/api/v3/status

Resolves: RHBZ#2024440
Change-Id: I4fbb25634795b9d13a28c417f918da5e58ad2321
changes/67/818367/3
Sagi Shnaidman 6 months ago committed by Shnaidman Sagi (Sergey)
parent
commit
31b0c74d1e
  1. 25
      tasks/satellite.yml

25
tasks/satellite.yml

@ -12,11 +12,34 @@
uri:
url: "{{ rhsm_satellite_url }}/pulp/api/v2/status"
validate_certs: no
status_code: 200
register: _sat6_check_v6
run_once: yes
ignore_errors: true
tags:
- rhsm_satellite
- name: SATELLITE | Check for Satellite 6.10
uri:
url: "{{ rhsm_satellite_url }}/pulp/api/v3/status"
validate_certs: no
status_code: 200, 404
register: _sat6_check
register: _sat6_check_v610
run_once: yes
tags:
- rhsm_satellite
when:
- _sat6_check_v6 is failed
- name: Set correct v6 check result
set_fact:
_sat6_check: "{{ _sat6_check_v6 }}"
when: _sat6_check_v6 is success
- name: Set correct v6.10 check result
set_fact:
_sat6_check: "{{ _sat6_check_v610 }}"
when: _sat6_check_v6 is failed
- name: SATELLITE | Gather service facts
service_facts:

Loading…
Cancel
Save