acc6ff0580
Change-Id: Ia8393f0e4f736dafb3ba7fb50cd2b679c24b1a01
18 lines
442 B
YAML
18 lines
442 B
YAML
- name: Ensure legacy ebtables is installed
|
|
package:
|
|
name: 'ebtables'
|
|
state: latest
|
|
become: yes
|
|
|
|
- name: Switch to legacy ebtables
|
|
shell:
|
|
cmd: /usr/bin/update-alternatives --set ebtables /usr/sbin/ebtables-legacy
|
|
executable: /bin/bash
|
|
become: yes
|
|
when:
|
|
- ansible_facts['distribution_release'] == "focal" or
|
|
ansible_facts['distribution_release'] == "jammy"
|
|
- ansible_facts['distribution'] == "Ubuntu"
|
|
|
|
|