commit ee571466183b6acad887036ea5a8c3e0cf094fbb
parent 84eb7f68aa4d1b7ae62cb5653ab58deb29664ecf
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 21 Feb 2021 22:05:28 +0100
parent 84eb7f68aa4d1b7ae62cb5653ab58deb29664ecf
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 21 Feb 2021 22:05:28 +0100
roles/common: add extraPackages
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/roles/common/tasks/packages.yml b/roles/common/tasks/packages.yml @@ -66,4 +66,21 @@ pacman: name: "{{ packages }}" update_cache: yes - when: ansible_distribution == "Archlinux"- \ No newline at end of file + when: ansible_distribution == "Archlinux" + + +- name: "[Alpine] Install extra packages" + apk: + name: "{{ system.extraPackages }}" + update_cache: yes + when: + - ansible_distribution == "Alpine" + - system.extraPackages is defined + +- name: "[Archlinux] Install extra packages" + pacman: + name: "{{ system.extraPackages }}" + update_cache: yes + when: + - ansible_distribution == "Archlinux" + - system.extraPackages is defined