From 0d07e62329b0e2ff76dd999ffed55fca7519cfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Tue, 10 Dec 2024 01:52:04 +0300 Subject: [PATCH] feat: install useful apps ncdu screenfetch (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- README.md | 6 ++++++ playbooks/useful_apps.yaml | 4 ++++ roles/useful_apps/README.md | 1 + roles/useful_apps/defaults/main.yaml | 0 roles/useful_apps/meta/main.yaml | 0 roles/useful_apps/tasks/main.yaml | 16 ++++++++++++++++ 6 files changed, 27 insertions(+) create mode 100644 playbooks/useful_apps.yaml create mode 100644 roles/useful_apps/README.md create mode 100644 roles/useful_apps/defaults/main.yaml create mode 100644 roles/useful_apps/meta/main.yaml create mode 100644 roles/useful_apps/tasks/main.yaml diff --git a/README.md b/README.md index 8bd5b86..228b939 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ ansible-galaxy install -f -r requirements.yaml ### Playbooks +#### Install useful apps + +```bash +ansible-playbook autoware.github_runner.useful_apps --ask-become-pass +``` + #### Docker setup ```bash diff --git a/playbooks/useful_apps.yaml b/playbooks/useful_apps.yaml new file mode 100644 index 0000000..d983ca7 --- /dev/null +++ b/playbooks/useful_apps.yaml @@ -0,0 +1,4 @@ +- name: Install useful apps + hosts: localhost + roles: + - autoware.github_runner.useful_apps diff --git a/roles/useful_apps/README.md b/roles/useful_apps/README.md new file mode 100644 index 0000000..922ad8f --- /dev/null +++ b/roles/useful_apps/README.md @@ -0,0 +1 @@ +# useful_apps diff --git a/roles/useful_apps/defaults/main.yaml b/roles/useful_apps/defaults/main.yaml new file mode 100644 index 0000000..e69de29 diff --git a/roles/useful_apps/meta/main.yaml b/roles/useful_apps/meta/main.yaml new file mode 100644 index 0000000..e69de29 diff --git a/roles/useful_apps/tasks/main.yaml b/roles/useful_apps/tasks/main.yaml new file mode 100644 index 0000000..9afa780 --- /dev/null +++ b/roles/useful_apps/tasks/main.yaml @@ -0,0 +1,16 @@ +- name: Ensure apt cache is updated + apt: + update_cache: true + become: true + +- name: Install ncdu + apt: + name: ncdu + state: present + become: true + +- name: Install screenfetch + apt: + name: screenfetch + state: present + become: true