2024/automation/ansible/roles/common/tasks/udev.yml

18 lines
384 B
YAML
Raw Normal View History

---
- 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