ifupdown2: install upstream version (3.1.0-1) if required

This commit is contained in:
jeltz 2022-08-27 21:04:36 +02:00
parent 8cc6e916b7
commit 3a202b4566
Signed by: jeltz
GPG key ID: 800882B66C0C3326
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,4 @@
--- ---
ifupdown2__interfaces: {} ifupdown2__interfaces: {}
ifupdown2__need_upstream_version: False
... ...

Binary file not shown.

View file

@ -13,9 +13,24 @@
masked: true masked: true
when: must_mask when: must_mask
- name: Install ifupdown2 - name: Install ifupdown2 (debian version)
apt: apt:
name: ifupdown2 name: ifupdown2
when: "not ifupdown2__need_upstream_version"
# FIXME: ifupdown2 3.1.0-1 is not yet available, but is needed for its
# better VxLAN support
# See https://github.com/CumulusNetworks/ifupdown2/issues/211
- name: Install upstream version of ifupdown2
block:
- name: Upload .deb file
copy:
src: ifupdown2_3.1.0-1_all.deb
dest: /tmp/ifupdown2_3.1.0-1_all.deb
- name: Install .deb file
apt:
deb: /tmp/ifupdown2_3.1.0-1_all.deb
when: "ifupdown2__need_upstream_version"
- name: Unmask networking now that ifupdown2 is installed - name: Unmask networking now that ifupdown2 is installed
systemd: systemd: