Adding the releasever varible to rhel7.9 testnodes 617/head
authorAdam Kraitman <akraitma@redhat.com>
Thu, 1 Apr 2021 15:21:06 +0000 (18:21 +0300)
committerAdam Kraitman <akraitma@redhat.com>
Mon, 5 Apr 2021 14:58:22 +0000 (17:58 +0300)
Fixes: https://tracker.ceph.com/issues/49771
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
roles/testnode/tasks/yum/repos.yml

index 278d8d7f6ed0261d899bf7a61adc74d3b42429b8..f8688599f6ace590ba6d1f4696801a4ab13ba5f6 100644 (file)
   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"