From 05c35a546a2e579d057397498576c7f8f440ca3c Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Tue, 8 Oct 2024 05:20:35 +0200 Subject: [PATCH] added installation of reqs for longhorn Signed-off-by: Tuan-Dat Tran --- roles/k3s_storage/tasks/main.yml | 1 + roles/k3s_storage/tasks/requirements.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 roles/k3s_storage/tasks/requirements.yml diff --git a/roles/k3s_storage/tasks/main.yml b/roles/k3s_storage/tasks/main.yml index fc446ac..65548fd 100644 --- a/roles/k3s_storage/tasks/main.yml +++ b/roles/k3s_storage/tasks/main.yml @@ -1,2 +1,3 @@ --- +- include_tasks: requirements.yml - include_tasks: installation.yml diff --git a/roles/k3s_storage/tasks/requirements.yml b/roles/k3s_storage/tasks/requirements.yml new file mode 100644 index 0000000..65bb412 --- /dev/null +++ b/roles/k3s_storage/tasks/requirements.yml @@ -0,0 +1,19 @@ +--- +- name: Update and upgrade packages + ansible.builtin.apt: + update_cache: true + upgrade: true + autoremove: true + become: true + +- name: Install extra packages + ansible.builtin.apt: + name: "open-iscsi" + state: present + become: true + +- name: Install extra packages + ansible.builtin.apt: + name: "nfs-common" + state: present + become: true