]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common/testnode: Support skipping entitlements & packages 404/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 30 Jul 2018 16:40:01 +0000 (12:40 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 30 Jul 2018 17:08:43 +0000 (13:08 -0400)
`skip_entitlements` and `skip_packaging` will be set to true in the
Ansible inventory for OVH nodes

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

index 3ef2b3b3a8bd4670d8c6d14c0c60825e34813c29..64056b3dc64538b85c624740fcd5a16ff213b46b 100644 (file)
   when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 22
 
 # configure Red Hat entitlements with subscription-manager
+# skip_entitlements=true on OVH testnodes
 - import_tasks: rhel-entitlements.yml
   when:
     ansible_distribution == 'RedHat' and
-    beta_distro == false
+    beta_distro == false and
+    skip_entitlements|default(false)|bool != true
   tags:
     - entitlements
 
index 4c18bd59b4fc729de750f19ea52e417409f0eec1..f52e701a93b33b400d6512823afe29e6ab8f467d 100644 (file)
   tags:
     - repos
 
+# skip_packaging=true set in group_vars for OVH testnodes.  We still want these
+# tasks to run on CentOS though so we set it back to false here.
+- set_fact:
+    skip_packaging: false
+  when: ansible_distribution != "RedHat"
+  tags:
+    - packages
+
 - name: Perform package related tasks.
   import_tasks: yum/packages.yml
+  when: skip_packaging|default(false)|bool != true
   tags:
     - packages