From 6c485e0a51c4896a8827220ad27ff40968a040c8 Mon Sep 17 00:00:00 2001 From: Emil Dabrowski Date: Wed, 11 Jan 2023 19:52:18 +0100 Subject: [PATCH] Install system tools --- playbooks/kubernetes/playbook.yaml | 2 ++ roles/install_system_tools/tasks/main.yml | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/install_system_tools/tasks/main.yml diff --git a/playbooks/kubernetes/playbook.yaml b/playbooks/kubernetes/playbook.yaml index 1280a54..cbf6287 100644 --- a/playbooks/kubernetes/playbook.yaml +++ b/playbooks/kubernetes/playbook.yaml @@ -2,6 +2,8 @@ - hosts: all gather_facts: yes roles: + - include_role: + name: install_system_tools - include_role: name: remove_swap - include_role: diff --git a/roles/install_system_tools/tasks/main.yml b/roles/install_system_tools/tasks/main.yml new file mode 100644 index 0000000..fe83120 --- /dev/null +++ b/roles/install_system_tools/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: Install system tools + become: true + vars: + packages: + - less + ansible.builtin.apt: + name: "{{ packages }}" + state: present + update_cache: yes