Merge "[multi-node-bridge] Allow to skip openvswitch installation"

This commit is contained in:
Zuul 2022-03-21 03:26:11 +00:00 committed by Gerrit Code Review
commit 57df8b9d6d
3 changed files with 11 additions and 0 deletions

View File

@ -74,3 +74,9 @@ inventory in order to work:
:default: 23
The IP address range CIDR/subnet.
.. zuul:rolevar:: install_ovs
:default: true
Whether or not to install openvswitch. It can be set to false
when ovs installation is taken care outside of the role.

View File

@ -6,3 +6,4 @@ bridge_configure_address: true
bridge_address_prefix: 172.24.4
bridge_address_offset: 1
bridge_address_subnet: 23
install_ovs: true

View File

@ -49,6 +49,7 @@
name: "{{ ovs_package }}"
state: present
when:
- install_ovs|bool
- ansible_distribution != 'Gentoo'
- name: Install openvswitch (Gentoo)
@ -58,6 +59,7 @@
state: present
jobs: 8
when:
- install_ovs|bool
- ansible_distribution == 'Gentoo'
- name: Ensure openvswitch is started
@ -66,6 +68,8 @@
name: "{{ ovs_service }}"
state: started
enabled: yes
when:
- install_ovs|bool
- name: Remove RDO repository files
become: yes