Skip to content

Commit 581bd5b

Browse files
authored
Merge pull request #618 from ceph/wip-releasever-sooner
common: Set releasever on testnodes sooner
2 parents 7d6f1c4 + 73c59fe commit 581bd5b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

roles/common/tasks/rhel-entitlements.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
validate_certs: no
2626
when: use_satellite == true
2727

28+
# set the releasever cause without it rhel-7-server-rpms repo fails on rhel7.9 machines
29+
# https://tracker.ceph.com/issues/49771
30+
# We have to do this here (instead of in testnodes role) because some package transactions fail during the common role.
31+
# However, we do not want to lock the release ver on all our systems; just testnodes.
32+
- name: Set the releasever
33+
copy:
34+
content: "{{ ansible_lsb.release }}"
35+
dest: /etc/yum/vars/releasever
36+
when: inventory_hostname in groups['testnodes']
37+
2838
- name: Determine if node is registered with subscription-manager.
2939
command: subscription-manager identity
3040
register: subscription

roles/testnode/tasks/yum/repos.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,3 @@
4848
when: (repo_file is defined and repo_file is changed) or
4949
(gpg_keys is defined and gpg_keys is changed) or
5050
(version_repo_file is defined and version_repo_file is changed)
51-
52-
# set the releasever cause without it rhel-7-server-rpms repo fails on rhel7.9 machines https://tracker.ceph.com/issues/49771
53-
- name: set the releasevar on rhel
54-
copy:
55-
content: "{{ ansible_lsb.release }}"
56-
dest: /etc/yum/vars/releasever
57-
when: ansible_distribution == "RedHat"

0 commit comments

Comments
 (0)