2020-02-07 12:38:30 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Deploy raspberry config
|
|
|
|
template:
|
2022-01-02 16:30:56 +00:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: /boot/{{ item }}
|
|
|
|
with_items:
|
|
|
|
- cmdline.txt
|
|
|
|
- config.txt
|
2020-02-07 12:38:30 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2022-01-28 17:07:36 +00:00
|
|
|
- name: Add udev rules
|
2020-02-07 12:38:30 +00:00
|
|
|
copy:
|
2022-01-28 17:07:36 +00:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: /etc/udev/rules.d/{{ item }}
|
2020-02-07 12:38:30 +00:00
|
|
|
notify: reboot
|
2022-01-28 17:07:36 +00:00
|
|
|
with_items:
|
|
|
|
- 10-vchiq-permissions.rules
|
|
|
|
- 80-movidius.rules
|
2020-02-07 12:38:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: Set groups to pi user
|
|
|
|
user:
|
|
|
|
name: pi
|
|
|
|
groups: tty,video
|
|
|
|
|
|
|
|
- meta: flush_handlers
|