]> git.phdru.name Git - ansible.git/commitdiff
Feat(bluetooth): Install bluetooth/bluez separately
authorOleg Broytman <phd@phdru.name>
Sat, 14 Oct 2023 21:50:28 +0000 (00:50 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 14 Oct 2023 21:50:28 +0000 (00:50 +0300)
playbooks/roles/bluetooth/README.txt [new file with mode: 0644]
playbooks/roles/bluetooth/tasks/apt.yaml [new file with mode: 0644]
playbooks/roles/bluetooth/tasks/main.yaml [new file with mode: 0644]

diff --git a/playbooks/roles/bluetooth/README.txt b/playbooks/roles/bluetooth/README.txt
new file mode 100644 (file)
index 0000000..88db907
--- /dev/null
@@ -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 (file)
index 0000000..56a61f0
--- /dev/null
@@ -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 (file)
index 0000000..45f3468
--- /dev/null
@@ -0,0 +1,3 @@
+- name: apt
+  import_tasks: apt.yaml
+  when: ansible_facts.os_family == 'Debian'