30 lines
969 B
YAML
30 lines
969 B
YAML
---
|
|
|
|
- hosts: all,
|
|
|
|
tasks:
|
|
|
|
### Remove remnants of previous versions of this playbook as none of the workarounds are required anymore ###
|
|
|
|
- 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
|
|
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"
|
|
|
|
- name: Reload systemd units
|
|
ansible.builtin.systemd:
|
|
daemon_reload: yes
|
|
when: temp_droid_juicer_unit.changed
|