robocar-setup/ansible/roles/base/tasks/hardware.yml

49 lines
820 B
YAML
Raw Normal View History

2020-02-07 12:38:30 +00:00
---
- name: Deploy raspberry config
template:
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
- name: Add udev rules
2020-02-07 12:38:30 +00:00
copy:
src: "{{ item }}"
dest: /etc/udev/rules.d/{{ item }}
2020-02-07 12:38:30 +00:00
notify: reboot
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