From: David Galloway Date: Thu, 30 Jun 2016 19:43:18 +0000 (-0400) Subject: downstream_setup: Ensure role is only run on RHEL or CentOS X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F260%2Fhead;p=ceph-cm-ansible.git downstream_setup: Ensure role is only run on RHEL or CentOS Signed-off-by: David Galloway --- diff --git a/roles/downstream-setup/tasks/main.yml b/roles/downstream-setup/tasks/main.yml index eab8c93e..31b67c8d 100644 --- a/roles/downstream-setup/tasks/main.yml +++ b/roles/downstream-setup/tasks/main.yml @@ -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")