From 1ad1ad6ace2f22af39fb0af0a679620008679318 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Mon, 3 Jul 2017 10:02:07 +0200 Subject: [PATCH] Missing prepare_ovs_tests directory (#26337) openvswitch_db tests have been backported from devel to stable-2.3[1], but the role to prepare_ovs_tests was missing from the backport, hence the test, when run complained about missing roles. This commit aims to bring this directory into stable-2.3 tree. [1] https://github.com/ansible/ansible/pull/26330 --- .../targets/prepare_ovs_tests/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/integration/targets/prepare_ovs_tests/tasks/main.yml diff --git a/test/integration/targets/prepare_ovs_tests/tasks/main.yml b/test/integration/targets/prepare_ovs_tests/tasks/main.yml new file mode 100644 index 00000000000..92d86b85c48 --- /dev/null +++ b/test/integration/targets/prepare_ovs_tests/tasks/main.yml @@ -0,0 +1,15 @@ +--- + +- name: Install openvswitch-switch package if we are on Ubuntu + apt: + name: openvswitch-switch + state: installed + update_cache: yes + when: ansible_distribution == 'Ubuntu' + +- name: Install openvswitch package if we are on Fedora + yum: + name: openvswitch + state: installed + update_cache: yes + when: ansible_distribution == 'Fedora'