diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-11-28 00:03:37 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-11-29 17:52:39 +0100 |
| commit | 2427127b814a85342b2279083eec60968554c53c (patch) | |
| tree | b1b5489f78d0634430893743dadb27d35a53f400 | |
| parent | 5627a4ceabc73c90cf89a6dc8587c003f59415e2 (diff) | |
Add the minimal role to ensure which util/bin is installed on boot
| -rw-r--r-- | configure.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/which/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/which/meta/main.yml | 18 | ||||
| -rw-r--r-- | roles/which/tasks/main.yml | 6 |
8 files changed, 35 insertions, 0 deletions
diff --git a/configure.yml b/configure.yml index 27ee3d3e..d7d6cd07 100644 --- a/configure.yml +++ b/configure.yml @@ -8,6 +8,7 @@ roles: - role: "locales" - role: "timezone" + - role: "which" - role: "wireguard" - role: "go" - role: "python" diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 02f6c2f3..3758251c 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -48,4 +48,5 @@ - role: "vim" - role: "neomutt" - role: "password_store" + - role: "which" - role: "firefox" diff --git a/molecule/debian/converge.yml b/molecule/debian/converge.yml index 1326fe2d..4f303973 100644 --- a/molecule/debian/converge.yml +++ b/molecule/debian/converge.yml @@ -59,4 +59,5 @@ - role: "vim" - role: "neomutt" - role: "password_store" + - role: "which" - role: "firefox" diff --git a/molecule/raspberrypi/converge.yml b/molecule/raspberrypi/converge.yml index 842aaac4..5034deea 100644 --- a/molecule/raspberrypi/converge.yml +++ b/molecule/raspberrypi/converge.yml @@ -49,4 +49,5 @@ - role: "vim" - role: "neomutt" - role: "password_store" + - role: "which" - role: "firefox" diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml index 8b047aec..068bf7ab 100644 --- a/molecule/ubuntu/converge.yml +++ b/molecule/ubuntu/converge.yml @@ -48,4 +48,5 @@ - role: "vim" - role: "neomutt" - role: "password_store" + - role: "which" - role: "firefox" diff --git a/roles/which/meta/argument_specs.yml b/roles/which/meta/argument_specs.yml new file mode 100644 index 00000000..87a91762 --- /dev/null +++ b/roles/which/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install which on Linux distribution" + description: "Install which on Linux distribution" + options: {} diff --git a/roles/which/meta/main.yml b/roles/which/meta/main.yml new file mode 100644 index 00000000..48c2b714 --- /dev/null +++ b/roles/which/meta/main.yml @@ -0,0 +1,18 @@ +--- +dependencies: [] +galaxy_info: + author: "a14m" + description: "Install which binary on Linux" + company: "kartoffeln.work GmbH." + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/which/tasks/main.yml b/roles/which/tasks/main.yml new file mode 100644 index 00000000..85ea0282 --- /dev/null +++ b/roles/which/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: "Ensure which is installed" + become: true + ansible.builtin.package: + name: "which" + state: "present" |
