set jobs for installing openvswitch

On Gentoo this allows multiple packages to compile/install at once.

Change-Id: I23fd629a351b4c6b2acc325611ed47cc04bca404
Signed-off-by: Matthew Thode <mthode@mthode.org>
This commit is contained in:
Matthew Thode 2020-02-19 12:56:39 -06:00
parent 84b7c745b2
commit a5ace834b1
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -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