| 1 | - name: Ensure legacy ebtables is installed |
| 2 | package: |
| 3 | name: 'ebtables' |
| 4 | state: latest |
| 5 | become: yes |
| 6 | |
| 7 | - name: Switch to legacy ebtables |
| 8 | shell: |
| 9 | cmd: /usr/bin/update-alternatives --set ebtables /usr/sbin/ebtables-legacy |
| 10 | executable: /bin/bash |
| 11 | become: yes |
| 12 | when: |
| 13 | - ansible_facts['distribution_release'] == "focal" or |
| 14 | ansible_facts['distribution_release'] == "jammy" |
| 15 | - ansible_facts['distribution'] == "Ubuntu" |
| 16 | |
| 17 |