mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
tasks/initscripts: Do not start network service
The network service from initscripts fails if there are network profiles for unknown devices. Also it does not start an actual daemon but just activates all profiles on disk. Therefore only enable it to ensure it will come up after boot.
This commit is contained in:
parent
74b3a31f90
commit
25181ed5b7
1 changed files with 10 additions and 1 deletions
|
|
@ -23,11 +23,20 @@
|
|||
when:
|
||||
- not network_packages is subset(ansible_facts.packages.keys())
|
||||
|
||||
- name: Enable network service
|
||||
- name: Enable and start NetworkManager
|
||||
service:
|
||||
name: "{{ network_service_name }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
when:
|
||||
- network_provider == "nm"
|
||||
|
||||
- name: Enable network service
|
||||
service:
|
||||
name: "{{ network_service_name }}"
|
||||
enabled: yes
|
||||
when:
|
||||
- network_provider == "initscripts"
|
||||
|
||||
- name: Configure networking connection profiles
|
||||
network_connections:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue