- hosts: raspi become: True become_user: root tasks: - copy: src=../../arduino/.pioenvs/megaatmega2560/firmware.hex dest=/tmp - systemd: state=stopped name=lightdm - shell: avrdude -p m2560 -c wiring -P /dev/serial/by-id/* -b 115200 -D -F -U flash:w:/tmp/firmware.hex - systemd: state=started name=lightdm