Signed-off-by: David Galloway <dgallowa@redhat.com>
# 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
# 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")