From a8d55eec193eefdff43cac944dd3f7aced087b30 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 --- roles/which/meta/argument_specs.yml | 6 ++++++ roles/which/meta/main.yml | 18 ++++++++++++++++++ roles/which/tasks/main.yml | 6 ++++++ 3 files changed, 30 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 (limited to 'roles') 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