From 509d9b5446aa414f17a4e3f5cf34075a6d18626f Mon Sep 17 00:00:00 2001 From: Peter Law Date: Fri, 11 Oct 2024 21:07:01 +0100 Subject: [PATCH 1/3] Having sqlite CLI is useful when working on the code-submitter --- roles/code-submitter/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/code-submitter/tasks/main.yml b/roles/code-submitter/tasks/main.yml index ae0070e..eaf0170 100644 --- a/roles/code-submitter/tasks/main.yml +++ b/roles/code-submitter/tasks/main.yml @@ -4,6 +4,11 @@ - python3-virtualenv - python3-wheel +- name: Install useful admin tools + apt: + pkg: + - sqlite3 + - name: Create install directory file: path: "{{ install_dir }}" From 9cd0d70d333be805fcdbcdef8039fad3e7696040 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Fri, 11 Oct 2024 21:07:26 +0100 Subject: [PATCH 2/3] Install some generally useful admin tools by default --- playbook.yml | 1 + roles/common-utils/tasks/main.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 roles/common-utils/tasks/main.yml diff --git a/playbook.yml b/playbook.yml index eb3977d..81036b1 100644 --- a/playbook.yml +++ b/playbook.yml @@ -8,6 +8,7 @@ - geerlingguy.firewall - geerlingguy.ntp - geerlingguy.security + - common-utils - bee - name: Web proxies diff --git a/roles/common-utils/tasks/main.yml b/roles/common-utils/tasks/main.yml new file mode 100644 index 0000000..9e9101c --- /dev/null +++ b/roles/common-utils/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: Install utils + apt: + pkg: nginx + update_cache: true + state: latest # noqa: package-latest + cache_valid_time: 86400 + with_items: + - htop + - iotop + - screen + - wget From 8f9b3a52bcd46a5b52a3ba76fdacd9a5c0ef313e Mon Sep 17 00:00:00 2001 From: Peter Law Date: Fri, 11 Oct 2024 21:50:43 +0100 Subject: [PATCH 3/3] Simplify utils packages installation --- roles/common-utils/tasks/main.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/roles/common-utils/tasks/main.yml b/roles/common-utils/tasks/main.yml index 9e9101c..31022bb 100644 --- a/roles/common-utils/tasks/main.yml +++ b/roles/common-utils/tasks/main.yml @@ -1,12 +1,7 @@ ---- - name: Install utils apt: - pkg: nginx - update_cache: true - state: latest # noqa: package-latest - cache_valid_time: 86400 - with_items: - - htop - - iotop - - screen - - wget + pkg: + - htop + - iotop + - screen + - wget