File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =Apply netplan configuration at boot
3
+ After =network-online.target
4
+ Wants =network-online.target
5
+
6
+ [Service]
7
+ Type =oneshot
8
+ ExecStart =/usr/sbin/netplan apply
9
+ RemainAfterExit =yes
10
+ TimeoutSec =60
11
+
12
+ [Install]
13
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 112
112
systemd : daemon_reload=yes
113
113
when : debpkg_mode or nixpkg_mode
114
114
115
+ - name : Install netplan apply service
116
+ copy :
117
+ src : files/netplan-apply.service
118
+ dest : /etc/systemd/system/netplan-apply.service
119
+ owner : root
120
+ group : root
121
+ mode : 0644
122
+ when : debpkg_mode or nixpkg_mode
123
+
124
+ - name : Enable netplan apply service
125
+ systemd :
126
+ name : netplan-apply.service
127
+ enabled : yes
128
+ when : debpkg_mode or nixpkg_mode
129
+
115
130
- name : Configure journald
116
131
copy :
117
132
src : files/journald.conf
You can’t perform that action at this time.
0 commit comments