]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
downstream_setup: Ensure role is only run on RHEL or CentOS 260/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 30 Jun 2016 19:43:18 +0000 (15:43 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 30 Jun 2016 19:43:18 +0000 (15:43 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/downstream-setup/tasks/main.yml

index eab8c93ec95790307555b527b75c13332431abd3..31b67c8dc1433aed2219b1d45b74692b4eaa4491 100644 (file)
@@ -3,7 +3,7 @@
 # the variables they use.  For example, `disable_yum_repos` would actually
 # disable all repos defined in that list.
 - include: setup.yml
-  when: not cleanup
+  when: not cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat")
 
 # These are tasks which reverse the actions corresponding to the names of
 # the variables they use. For example, `disable_yum_repos` would actually
@@ -11,4 +11,4 @@
 # teuthology, so that you can tell a teuthology run to disable a set of repos
 # for the test run but then re-enable them during the teuthology cleanup process.
 - include: cleanup.yml
-  when: cleanup
+  when: cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat")