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 /roles/bluetui | |
| parent | 15970c6f31f3d836bf4b3037999ca901acef82dd (diff) | |
Add bluetui role to setup bluetooth on arch linux
Diffstat (limited to 'roles/bluetui')
| -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 |
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" |
