Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permanently enabling systemd-networkd #32

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions roles/systemd_networkd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@

- 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
ansible.builtin.service:
name: systemd-networkd
enabled: false

- name: Enable systemd-networkd
ansible.builtin.service:
name: systemd-networkd
enabled: true

- name: Start and enable systemd-resolved
become: true
Expand Down