]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Define release with subscription-manager 566/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 28 Apr 2020 20:39:16 +0000 (16:39 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 28 Apr 2020 20:39:16 +0000 (16:39 -0400)
See comment

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index 0b016ce24f1bf7b0e59da5032aeb21ce9f955de7..7d00c7e7bc8d4ecd2d46f56f2984c1b55065d755 100644 (file)
   import_tasks: beta_repos.yml
   when: ansible_distribution_version not in rhsm_release_list.stdout_lines
 
+# A `dnf group upgrade base` which happens later in the testnodes role will
+# update a 8.X system to 8.Y.  We don't want that to happen because we
+# expect to test on a specific version.  This locks a 8.X install to 8.X packages.
+- name: Set release number
+  command: "subscription-manager release --set={{ ansible_distribution_version }}"
+  when: rhsm_registered == true
+
 - name: Get list of enabled RHSM repos
   shell: subscription-manager repos --list | grep -B4 'Enabled:.*1' | grep 'Repo ID:' | sed -e 's/Repo ID:\s*\(.*\)/\1/' | sort
   register: repo_list_cmd