40 lines
743 B
YAML
40 lines
743 B
YAML
---
|
|
- name: Disable NetworkManager
|
|
become: true
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: false
|
|
loop:
|
|
- NetworkManager
|
|
- NetworkManager-wait-online
|
|
|
|
- name: Enable systemd-networkd
|
|
become: true
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
loop:
|
|
- systemd-networkd
|
|
- systemd-resolved
|
|
- systemd-networkd-wait-online
|
|
|
|
- name: Stop NetworkManager
|
|
when: omni_restart_services == true
|
|
become: true
|
|
systemd:
|
|
name: "{{ item }}"
|
|
state: stopped
|
|
loop:
|
|
- NetworkManager
|
|
- NetworkManager-wait-online
|
|
|
|
- name: Start systemd-networkd
|
|
when: omni_restart_services == true
|
|
become: true
|
|
systemd:
|
|
name: "{{ item }}"
|
|
state: started
|
|
loop:
|
|
- systemd-networkd
|
|
- systemd-resolved
|