--- - name: Deploy raspberry config template: src: "{{ item }}" dest: /boot/{{ item }} with_items: - cmdline.txt - config.txt notify: reboot - name: Set pi user in groups user: name: pi groups: tty,dialout #- name: Disable console # replace: # path: /boot/cmdline.txt # regexp: '(.*) console=[^ ]+(\s+.*)?$' # replace: '\1\2' # notify: reboot #- name: Disable tty use # systemd: # name: getty@tty1.service # masked: yes # enabled: no # daemon_reload: yes # notify: reboot - name: Add udev rules copy: src: "{{ item }}" dest: /etc/udev/rules.d/{{ item }} notify: reboot with_items: - 10-vchiq-permissions.rules - 80-movidius.rules - name: Set groups to pi user user: name: pi groups: tty,video - meta: flush_handlers