---

- name: Copy udev rules for correct yubikey device mode
  copy:
    content: SUBSYSTEM=="usb", ACTION=="add|change", ATTR{idVendor}=="1050", ATTR{idProduct}=="0010", MODE="0666"
    dest: /etc/udev/rules.d/70-yubikey_fix_mode.rules
  notify:
  - Reload udev rules

---

- name: Copy udev rules for correct yubikey device mode
  copy:
    content: |
      SUBSYSTEM=="usb", ACTION=="add|change", ATTR{idVendor}=="1050", ATTR{idProduct}=="0010", MODE="0666"
    dest: /etc/udev/rules.d/70-yubikey_fix_mode.rules
  notify:
  - Reload udev rules

Add new line to udev rules file
Add new line to udev rules file
