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:
|
|
|
|
|
2025-01-06 16:38:37 +00:00
|
|
|
### Remove remnants of previous versions of this playbook as none of the workarounds are required anymore ###
|
2024-08-22 23:05:21 +00:00
|
|
|
|
|
|
|
- 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
|
2025-01-06 16:38:37 +00:00
|
|
|
with_items:
|
|
|
|
- "/etc/systemd/system/droid-juicer-sdm670.service"
|
|
|
|
- "/opt/bluetooth-mac.bash"
|
|
|
|
- "/etc/udev/rules.d/bluetooth.rules"
|
|
|
|
- "/lib/udev/rules.d/90-libcamera.rules"
|
2024-08-22 23:05:21 +00:00
|
|
|
|
|
|
|
- name: Reload systemd units
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: yes
|
|
|
|
when: temp_droid_juicer_unit.changed
|