From 90df96a6f48f1c185c53d7eb156c625708c098b5 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 30 Jun 2016 15:43:18 -0400 Subject: [PATCH] downstream_setup: Ensure role is only run on RHEL or CentOS Signed-off-by: David Galloway --- roles/downstream-setup/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.47.3