From 3012e5514ab2ee17f2d5f7703683c57183ae027b 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:44:18 +0300 Subject: [PATCH 1/3] feat: install useful apps ncdu screenfetch 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..e00da38 --- /dev/null +++ b/roles/useful_apps/tasks/main.yaml @@ -0,0 +1,16 @@ +- name: Ensure apt cache is updated + apt: + update_cache: yes + become: yes + +- name: Install ncdu + apt: + name: ncdu + state: present + become: yes + +- name: Install screenfetch + apt: + name: screenfetch + state: present + become: yes \ No newline at end of file From 0648f2d20a8b0104d553e841f87014f654ba4b51 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:45:59 +0000 Subject: [PATCH 2/3] style(pre-commit): autofix --- roles/useful_apps/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/useful_apps/tasks/main.yaml b/roles/useful_apps/tasks/main.yaml index e00da38..bf48d5d 100644 --- a/roles/useful_apps/tasks/main.yaml +++ b/roles/useful_apps/tasks/main.yaml @@ -13,4 +13,4 @@ apt: name: screenfetch state: present - become: yes \ No newline at end of file + become: yes From 351d4d40eefb568f09e60e644d0fbe00f2b91ea5 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:46:47 +0300 Subject: [PATCH 3/3] yes -> true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- roles/useful_apps/tasks/main.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/useful_apps/tasks/main.yaml b/roles/useful_apps/tasks/main.yaml index bf48d5d..9afa780 100644 --- a/roles/useful_apps/tasks/main.yaml +++ b/roles/useful_apps/tasks/main.yaml @@ -1,16 +1,16 @@ - name: Ensure apt cache is updated apt: - update_cache: yes - become: yes + update_cache: true + become: true - name: Install ncdu apt: name: ncdu state: present - become: yes + become: true - name: Install screenfetch apt: name: screenfetch state: present - become: yes + become: true