2024-07-16 23:17:32 +00:00
|
|
|
---
|
|
|
|
|
2024-08-31 23:32:07 +00:00
|
|
|
- hosts: all,
|
2024-07-16 23:17:32 +00:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
2024-08-22 23:05:21 +00:00
|
|
|
### Remove remnants of previous versions of this playbook ###
|
|
|
|
|
|
|
|
- name: "Remove remnants from previous versions of this playbook"
|
|
|
|
ansible.builtin.service:
|
|
|
|
enabled: false
|
|
|
|
masked: true
|
|
|
|
name: "droid-juicer-sdm670.service"
|
|
|
|
ignore_errors: true # do not fail if the unit does not exist
|
|
|
|
register: temp_droid_juicer_unit
|
|
|
|
|
|
|
|
- name: "Remove remnants of previous versions of this playbook"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "/etc/systemd/system/droid-juicer-sdm670.service"
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Reload systemd units
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: yes
|
|
|
|
when: temp_droid_juicer_unit.changed
|
|
|
|
|
2024-07-16 23:17:32 +00:00
|
|
|
### Various Small Fixes ###
|
|
|
|
|
2024-09-07 15:34:14 +00:00
|
|
|
# currently non seem to be required :)
|
2024-07-16 23:17:32 +00:00
|
|
|
|
|
|
|
### Bluetooth ###
|
|
|
|
|
|
|
|
- name: "Copy /opt/bluetooth-mac.bash"
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: bluetooth-mac.bash
|
|
|
|
dest: /opt/bluetooth-mac.bash
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u+rwx
|
|
|
|
force: true
|
|
|
|
|
|
|
|
- name: "Copy /etc/udev/rules.d/bluetooth.rules"
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: bluetooth-udev.rules
|
|
|
|
dest: /etc/udev/rules.d/bluetooth.rules
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u+rw
|
|
|
|
force: true
|
2024-08-26 15:02:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Camera ###
|
|
|
|
|
|
|
|
- name: "Add udev rule for the camera"
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "90-libcamera.rules"
|
|
|
|
dest: "/lib/udev/rules.d/90-libcamera.rules"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
force: true
|