From 2427127b814a85342b2279083eec60968554c53c Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 28 Nov 2025 00:03:37 +0100 Subject: Add the minimal role to ensure which util/bin is installed on boot --- configure.yml | 1 + molecule/archlinux/converge.yml | 1 + molecule/debian/converge.yml | 1 + molecule/raspberrypi/converge.yml | 1 + molecule/ubuntu/converge.yml | 1 + roles/which/meta/argument_specs.yml | 6 ++++++ roles/which/meta/main.yml | 18 ++++++++++++++++++ roles/which/tasks/main.yml | 6 ++++++ 8 files changed, 35 insertions(+) create mode 100644 roles/which/meta/argument_specs.yml create mode 100644 roles/which/meta/main.yml create mode 100644 roles/which/tasks/main.yml 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" -- cgit v1.2.3