diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-14 02:43:14 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-14 02:43:14 +0100 |
| commit | bb3e20fa4747b30897086447880d7c02d6471a51 (patch) | |
| tree | baf171157b939eb3f58740e7bd5ead2b158dbfa0 | |
| parent | 06d8bc9b3ee871eb3bb705ae0b21b93c8b762025 (diff) | |
Add role to install usbutils (lsusb) on different linux distros
| -rw-r--r-- | molecule/archlinux-gnome/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/archlinux/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/debian/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/raspberrypi/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/ubuntu/converge.yml | 1 | ||||
| -rw-r--r-- | roles/usbutils/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/usbutils/meta/main.yml | 17 | ||||
| -rw-r--r-- | roles/usbutils/tasks/main.yml | 6 |
8 files changed, 34 insertions, 0 deletions
diff --git a/molecule/archlinux-gnome/converge.yml b/molecule/archlinux-gnome/converge.yml index c1b957d4..90002a5a 100644 --- a/molecule/archlinux-gnome/converge.yml +++ b/molecule/archlinux-gnome/converge.yml @@ -64,6 +64,7 @@ - role: "ag" - role: "tmux" - role: "yay" + - role: "usbutils" - role: "wireguard" - role: "gateway" - role: "python" diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 0b488d4c..40ffc541 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -64,6 +64,7 @@ - role: "ag" - role: "tmux" - role: "yay" + - role: "usbutils" - role: "wireguard" - role: "gateway" - role: "python" diff --git a/molecule/debian/converge.yml b/molecule/debian/converge.yml index 787d1e31..74e9bc69 100644 --- a/molecule/debian/converge.yml +++ b/molecule/debian/converge.yml @@ -80,6 +80,7 @@ - role: "go" - role: "rust" - role: "zoxide" + - role: "usbutils" - role: "docker" - role: "podman" - role: "ansible" diff --git a/molecule/raspberrypi/converge.yml b/molecule/raspberrypi/converge.yml index fbd02a8f..f539768a 100644 --- a/molecule/raspberrypi/converge.yml +++ b/molecule/raspberrypi/converge.yml @@ -76,6 +76,7 @@ - role: "go" - role: "rust" - role: "zoxide" + - role: "usbutils" - role: "wireguard" - role: "gateway" - role: "nginx" diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml index 4408dc0b..4af43733 100644 --- a/molecule/ubuntu/converge.yml +++ b/molecule/ubuntu/converge.yml @@ -69,6 +69,7 @@ - role: "go" - role: "rust" - role: "zoxide" + - role: "usbutils" - role: "docker" - role: "podman" - role: "ansible" diff --git a/roles/usbutils/meta/argument_specs.yml b/roles/usbutils/meta/argument_specs.yml new file mode 100644 index 00000000..66c7ac3c --- /dev/null +++ b/roles/usbutils/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install usbutils(lsusb) on Linux distribution" + description: "Install usbutils(lsusb) on Linux distribution" + options: {} diff --git a/roles/usbutils/meta/main.yml b/roles/usbutils/meta/main.yml new file mode 100644 index 00000000..426aebf3 --- /dev/null +++ b/roles/usbutils/meta/main.yml @@ -0,0 +1,17 @@ +--- +dependencies: [] +galaxy_info: + author: "a14m" + description: "Install usbutils(lsusb)" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/usbutils/tasks/main.yml b/roles/usbutils/tasks/main.yml new file mode 100644 index 00000000..186f9f7d --- /dev/null +++ b/roles/usbutils/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: "Ensure usbutils is installed" + become: true + ansible.builtin.package: + name: "usbutils" + state: "present" |
