Browse code

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

Yanis Guenane authored on 2017/07/03 17:02:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,15 @@
0
+---
1
+
2
+- name: Install openvswitch-switch package if we are on Ubuntu
3
+  apt:
4
+    name: openvswitch-switch
5
+    state: installed
6
+    update_cache: yes
7
+  when: ansible_distribution == 'Ubuntu'
8
+
9
+- name: Install openvswitch package if we are on Fedora
10
+  yum:
11
+    name: openvswitch
12
+    state: installed
13
+    update_cache: yes
14
+  when: ansible_distribution == 'Fedora'