From: Oleg Broytman Date: Sat, 14 Oct 2023 21:50:28 +0000 (+0300) Subject: Feat(bluetooth): Install bluetooth/bluez separately X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4a343d5f4ddcfaf54a62774b6fd714604a8ddac7;p=ansible.git Feat(bluetooth): Install bluetooth/bluez separately --- diff --git a/playbooks/roles/bluetooth/README.txt b/playbooks/roles/bluetooth/README.txt new file mode 100644 index 0000000..88db907 --- /dev/null +++ b/playbooks/roles/bluetooth/README.txt @@ -0,0 +1 @@ +Install bluetooth/bluez. diff --git a/playbooks/roles/bluetooth/tasks/apt.yaml b/playbooks/roles/bluetooth/tasks/apt.yaml new file mode 100644 index 0000000..56a61f0 --- /dev/null +++ b/playbooks/roles/bluetooth/tasks/apt.yaml @@ -0,0 +1,10 @@ +- name: Install bluetooth/bluez + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['bluetooth', 'bluez', 'bluez-tools', 'pulseaudio-module-bluetooth'] + state: latest + update_cache: yes diff --git a/playbooks/roles/bluetooth/tasks/main.yaml b/playbooks/roles/bluetooth/tasks/main.yaml new file mode 100644 index 0000000..45f3468 --- /dev/null +++ b/playbooks/roles/bluetooth/tasks/main.yaml @@ -0,0 +1,3 @@ +- name: apt + import_tasks: apt.yaml + when: ansible_facts.os_family == 'Debian'