From a5ace834b196ac8857c4c30431808cb057bfd6e2 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Wed, 19 Feb 2020 12:56:39 -0600 Subject: [PATCH] set jobs for installing openvswitch On Gentoo this allows multiple packages to compile/install at once. Change-Id: I23fd629a351b4c6b2acc325611ed47cc04bca404 Signed-off-by: Matthew Thode --- roles/multi-node-bridge/tasks/common.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/multi-node-bridge/tasks/common.yaml b/roles/multi-node-bridge/tasks/common.yaml index 758b46c56..8fda29f2e 100644 --- a/roles/multi-node-bridge/tasks/common.yaml +++ b/roles/multi-node-bridge/tasks/common.yaml @@ -41,6 +41,17 @@ package: name: "{{ ovs_package }}" state: present + when: + - ansible_distribution != 'Gentoo' + +- name: Install openvswitch (Gentoo) + become: yes + package: + name: "{{ ovs_package }}" + state: present + jobs: 8 + when: + - ansible_distribution == 'Gentoo' - name: Ensure openvswitch is started become: yes