Enable systemd in WSL
This commit is contained in:
parent
910be1641d
commit
d1c3184400
7
roles/wsl/handlers/main.yaml
Normal file
7
roles/wsl/handlers/main.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: restart systemd-binfmt
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
name: systemd-binfmt
|
||||||
|
enabled: true
|
||||||
|
state: restarted
|
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: create wsl.conf
|
||||||
|
template:
|
||||||
|
src: templates/wsl.conf.j2
|
||||||
|
dest: /etc/wsl.conf
|
||||||
|
|
||||||
- name: install apt packages
|
- name: install apt packages
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
|
1
roles/wsl/templates/binfmt_misc.j2
Normal file
1
roles/wsl/templates/binfmt_misc.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
:WSLInterop:M::MZ::/init:PF
|
5
roles/wsl/templates/wsl.conf.j2
Normal file
5
roles/wsl/templates/wsl.conf.j2
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[boot]
|
||||||
|
systemd = true
|
||||||
|
|
||||||
|
[network]
|
||||||
|
generateHosts = false
|
Loading…
x
Reference in New Issue
Block a user