2024-05-04 19:05:06 +03:00
|
|
|
---
|
|
|
|
- name: Create /etc/udev/rules.d
|
|
|
|
ansible.builtin.file:
|
|
|
|
name: /etc/udev/rules.d
|
|
|
|
state: directory
|
|
|
|
mode: "755"
|
|
|
|
|
|
|
|
- name: Template out to udev.d
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: udev.rules.j2
|
|
|
|
dest: "/etc/udev/rules.d/{{ item.key }}.rules"
|
|
|
|
mode: "644"
|
|
|
|
with_items:
|
|
|
|
- "{{ udev_rules | dict2items }}"
|
|
|
|
notify:
|
2024-05-04 20:16:12 +03:00
|
|
|
- Update initramfs
|
|
|
|
- Trigger udev add
|