From 4a343d5f4ddcfaf54a62774b6fd714604a8ddac7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 15 Oct 2023 00:50:28 +0300 Subject: [PATCH] Feat(bluetooth): Install bluetooth/bluez separately --- playbooks/roles/bluetooth/README.txt | 1 + playbooks/roles/bluetooth/tasks/apt.yaml | 10 ++++++++++ playbooks/roles/bluetooth/tasks/main.yaml | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 playbooks/roles/bluetooth/README.txt create mode 100644 playbooks/roles/bluetooth/tasks/apt.yaml create mode 100644 playbooks/roles/bluetooth/tasks/main.yaml 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' -- 2.39.5