tenks/playbooks/tenks-deploy-teardown/tasks/ensure_openvswitch.yml
Mark Goddard 2c2c8b9504 Fix CI failures
* new ansible-lint complaints
* clamp ansible-lint to <7
* tox 4 support
* switch to CentOS NFV Open vSwitch repository for OVS - rocky 9 RDO install was failing
* switch from Kayobe CentOS stream 8 to Rocky Linux 9 and Ubuntu Jammy
  jobs - these are the current supported distros in Kayobe master

Change-Id: Ic607ccccc866da65c100053bfa15ee141a98679e
2023-05-18 09:24:55 +01:00

26 lines
555 B
YAML

---
- name: Install Open vSwitch package repository
become: true
package:
name: "{{ openvswitch_package_repo_name }}"
state: present
register: result
until: result is success
retries: 3
when: openvswitch_package_repo_name is not none
- 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