diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-07 19:15:05 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-07 19:15:05 +0100 |
| commit | 22503e6b72c61ede11f065f95183d55da3119c08 (patch) | |
| tree | 19800326e319f813138d40e2975f7910ff5aed1b | |
| parent | 15970c6f31f3d836bf4b3037999ca901acef82dd (diff) | |
Add bluetui role to setup bluetooth on arch linux
| -rw-r--r-- | molecule/archlinux-gnome/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/archlinux/converge.yml | 1 | ||||
| -rw-r--r-- | roles/bluetui/handlers/main.yml | 7 | ||||
| -rw-r--r-- | roles/bluetui/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/bluetui/meta/main.yml | 11 | ||||
| -rw-r--r-- | roles/bluetui/tasks/main.yml | 11 |
6 files changed, 37 insertions, 0 deletions
diff --git a/molecule/archlinux-gnome/converge.yml b/molecule/archlinux-gnome/converge.yml index 687be938..c23e4d07 100644 --- a/molecule/archlinux-gnome/converge.yml +++ b/molecule/archlinux-gnome/converge.yml @@ -78,3 +78,4 @@ - role: "ghostty" - role: "xdg-terminal-exec" - role: "btop" + - role: "bluetui" diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 5e18a60a..713512a2 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -77,4 +77,5 @@ - role: "ghostty" - role: "xdg-terminal-exec" - role: "btop" + - role: "bluetui" - role: "hyprland" 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" |
