summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/bluetui/handlers/main.yml7
-rw-r--r--roles/bluetui/meta/argument_specs.yml6
-rw-r--r--roles/bluetui/meta/main.yml11
-rw-r--r--roles/bluetui/tasks/main.yml11
4 files changed, 35 insertions, 0 deletions
diff --git a/roles/bluetui/handlers/main.yml b/roles/bluetui/handlers/main.yml
new file mode 100644
index 00000000..1c2fe5ef
--- /dev/null
+++ b/roles/bluetui/handlers/main.yml
@@ -0,0 +1,7 @@
+---
+- name: "Start bluetooth"
+ become: true
+ ansible.builtin.systemd_service:
+ name: "bluetooth"
+ enabled: "true"
+ state: "started"
diff --git a/roles/bluetui/meta/argument_specs.yml b/roles/bluetui/meta/argument_specs.yml
new file mode 100644
index 00000000..232d6000
--- /dev/null
+++ b/roles/bluetui/meta/argument_specs.yml
@@ -0,0 +1,6 @@
+---
+argument_specs:
+ main:
+ short_description: "Install bluetui on Arch Linux"
+ description: "Install bluetui on Arch Linux"
+ options: {}
diff --git a/roles/bluetui/meta/main.yml b/roles/bluetui/meta/main.yml
new file mode 100644
index 00000000..4e1bafc6
--- /dev/null
+++ b/roles/bluetui/meta/main.yml
@@ -0,0 +1,11 @@
+---
+dependencies: []
+galaxy_info:
+ author: "a14m"
+ description: "Install bluetui on Arch Linux"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
diff --git a/roles/bluetui/tasks/main.yml b/roles/bluetui/tasks/main.yml
new file mode 100644
index 00000000..6358cb2a
--- /dev/null
+++ b/roles/bluetui/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- name: "Ensure bluetooth, bluetui and bluetoothctl packages are installed"
+ become: true
+ ansible.builtin.package:
+ name:
+ - "bluez"
+ - "bluez-utils"
+ - "bluetui"
+ state: "present"
+ notify:
+ - "Start bluetooth"