tenks/playbooks/tenks-deploy-teardown/tasks/ensure_openvswitch.yml
Radosław Piliszek 6ca0bb7bd6 [CI] Optimise ovs setup
Change-Id: I28ec8e02054ea75efffe472672ff3ed46c6f2cf7
2022-09-10 09:11:01 +00:00

24 lines
581 B
YAML

---
- name: Install the Delorean dependencies repository
become: true
get_url:
url: "https://trunk.rdoproject.org/centos{{ ansible_facts.distribution_major_version }}-master/delorean-deps.repo"
dest: /etc/yum.repos.d/
when:
- ansible_facts.os_family == "RedHat"
- name: Install Open vSwitch
become: true
package:
name: "{{ openvswitch_package_name }}"
state: present
register: result
until: result is success
retries: 3
- name: Start Open vSwitch service
become: true
service:
name: "{{ openvswitch_service_name }}"
state: started