- hosts: raspi become: True become_user: root tasks: - synchronize: src=../.. dest=/home/pi/sejf - synchronize: src="custom/{{ inventory_hostname }}" dest=/home/pi/sejf/raspi ignore_errors: yes - copy: src=sejf.service dest=/etc/systemd/system/sejf.service - systemd: name=sejf state=restarted enabled=yes - copy: src=autostart dest=/home/pi/.config/lxsession/LXDE-pi/autostart - apt: name=python-flask state=present - apt: name=avrdude state=present - file: path=/etc/xdg/autostart/pprompt.desktop state=absent - file: path=/etc/xdg/autostart/sejf.desktop state=absent