udev_workaround.yml 632 B

123456789101112131415161718192021222324
  1. ---
  2. - name: Getting current systemd-udevd exec command
  3. command: grep -e "^ExecStart=" /lib/systemd/system/systemd-udevd.service
  4. changed_when: false
  5. register: udevw_udev_start_cmd
  6. - name: Assure systemd-udevd.service.d directory exists
  7. file:
  8. path: "{{ udevw_udevd_dir }}"
  9. state: directory
  10. - name: Create systemd-udevd override file
  11. copy:
  12. content: |
  13. [Service]
  14. #Need blank ExecStart to "clear" pre-existing one
  15. ExecStart=
  16. {{ udevw_udev_start_cmd.stdout }} --event-timeout=300
  17. dest: "{{ udevw_udevd_dir }}/override.conf"
  18. owner: root
  19. mode: "0644"
  20. notify:
  21. - restart udev