validate_certs: no
when: use_satellite == true
+# set the releasever cause without it rhel-7-server-rpms repo fails on rhel7.9 machines
+# https://tracker.ceph.com/issues/49771
+# We have to do this here (instead of in testnodes role) because some package transactions fail during the common role.
+# However, we do not want to lock the release ver on all our systems; just testnodes.
+- name: Set the releasever
+ copy:
+ content: "{{ ansible_lsb.release }}"
+ dest: /etc/yum/vars/releasever
+ when: inventory_hostname in groups['testnodes']
+
- name: Determine if node is registered with subscription-manager.
command: subscription-manager identity
register: subscription
when: (repo_file is defined and repo_file is changed) or
(gpg_keys is defined and gpg_keys is changed) or
(version_repo_file is defined and version_repo_file is changed)
-
-# set the releasever cause without it rhel-7-server-rpms repo fails on rhel7.9 machines https://tracker.ceph.com/issues/49771
-- name: set the releasevar on rhel
- copy:
- content: "{{ ansible_lsb.release }}"
- dest: /etc/yum/vars/releasever
- when: ansible_distribution == "RedHat"