role for eudev

main
Ricard Illa 2023-01-24 17:53:30 +01:00
parent 840a29726c
commit eb8b8b678e
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,52 @@
---
- name: disable mdev
service:
name: "{{ item }}"
runlevel: sysinit
state: stopped
enabled: false
loop:
- hwdrivers
- mdev
- name: disable mdevd
service:
name: "{{ item }}"
runlevel: sysinit
state: stopped
enabled: false
loop:
- mdevd
- mdevd-init
- hwdrivers
- name: keep mdevd-openrc uninstalled
apk:
name: mdevd-openrc
state: absent
- name: install eudev
apk:
name:
- eudev
- udev-init-scripts
- udev-init-scripts-openrc
- name: enable udev
service:
name: "{{ item }}"
runlevel: sysinit
state: started
enabled: true
loop:
- udev
- udev-trigger
- udev-settle
- name: enable udev-postmount
service:
name: udev-postmount
runlevel: default
state: started
enabled: true

View File

@ -0,0 +1,5 @@
---
- name: 'setup eudev for alpine'
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"