aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/openvswitch/tasks/config-host.yml
blob: dfd4f8cff44be4024c9b2e968a4da8369925c7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Load and persist openvswitch module
  import_role:
    name: module-load
  vars:
    modules:
      - {'name': openvswitch}

# NOTE(m.hiner): Podman considers non-existent mount directory
# as a error, so it has to be created beforehand.
# See: https://github.com/containers/podman/issues/14781
- name: Create /run/openvswitch directory on host
  become: True
  file:
    path: /run/openvswitch
    state: directory
    mode: "0770"
    owner: "{{ config_owner_user }}"
    group: "{{ config_owner_group }}"
  when: kolla_container_engine == 'podman'