From 3272331f08163a62725facfa0f5828a382490e65 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 20 Sep 2022 18:54:39 +0100 Subject: [PATCH] Add role for htop on macOS/Debian --- Unix.yaml | 1 + roles/htop/tasks/Darwin.yaml | 5 +++++ roles/htop/tasks/Debian.yaml | 5 +++++ roles/htop/tasks/main.yaml | 2 ++ 4 files changed, 13 insertions(+) create mode 100644 roles/htop/tasks/Darwin.yaml create mode 100644 roles/htop/tasks/Debian.yaml create mode 100644 roles/htop/tasks/main.yaml diff --git a/Unix.yaml b/Unix.yaml index 35aa729..06174d4 100644 --- a/Unix.yaml +++ b/Unix.yaml @@ -13,6 +13,7 @@ - role: curl - role: fzf - role: git + - role: htop - role: tidy - role: tree diff --git a/roles/htop/tasks/Darwin.yaml b/roles/htop/tasks/Darwin.yaml new file mode 100644 index 0000000..d26f731 --- /dev/null +++ b/roles/htop/tasks/Darwin.yaml @@ -0,0 +1,5 @@ +--- +- name: install homebrew package + homebrew: + name: htop + state: latest diff --git a/roles/htop/tasks/Debian.yaml b/roles/htop/tasks/Debian.yaml new file mode 100644 index 0000000..a2163a2 --- /dev/null +++ b/roles/htop/tasks/Debian.yaml @@ -0,0 +1,5 @@ +--- +- name: install apt package + apt: + name: htop + state: latest diff --git a/roles/htop/tasks/main.yaml b/roles/htop/tasks/main.yaml new file mode 100644 index 0000000..6853678 --- /dev/null +++ b/roles/htop/tasks/main.yaml @@ -0,0 +1,2 @@ +--- +- include_tasks: '{{ansible_os_family}}.yaml'