diff --git a/roles/systemd_networkd/tasks/main.yml b/roles/systemd_networkd/tasks/main.yml index fe7ac5a..c7218c8 100644 --- a/roles/systemd_networkd/tasks/main.yml +++ b/roles/systemd_networkd/tasks/main.yml @@ -16,11 +16,21 @@ - ansible_facts.distribution_major_version >= '12' - name: Enable systemd-networkd - become: true - ansible.builtin.service: - name: systemd-networkd - enabled: true when: systemd_networkd_network or systemd_networkd_link or systemd_networkd_netdev + block: + # TODO(mattcrees): Remove once this gets into a versioned release: + # https://github.com/ansible/ansible/pull/77754 + - name: Temporarily disable systemd-networkd + become: true + ansible.builtin.service: + name: systemd-networkd + enabled: false + + - name: Enable systemd-networkd + become: true + ansible.builtin.service: + name: systemd-networkd + enabled: true - name: Start and enable systemd-resolved become: true