From 53d574dd1210691d80b4c758b8f7de7c4eb1bb48 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 11 Feb 2021 23:28:37 +0200 Subject: [PATCH] roles/common: Add Alpine packages --- roles/common/tasks/main.yml | 5 +++++ roles/common/tasks/packages_Alpine.yml | 27 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 roles/common/tasks/packages_Alpine.yml diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index def4856..1eb2483 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -17,6 +17,11 @@ when: ansible_distribution == 'Ubuntu' tags: packages +- name: Install common packages + include_tasks: packages_Alpine.yml + when: ansible_distribution == 'Alpine' + tags: packages + - name: Configure firewall include_tasks: firewall_Debian.yml when: ansible_distribution == 'Debian' diff --git a/roles/common/tasks/packages_Alpine.yml b/roles/common/tasks/packages_Alpine.yml new file mode 100644 index 0000000..e114a75 --- /dev/null +++ b/roles/common/tasks/packages_Alpine.yml @@ -0,0 +1,27 @@ +--- +# requires: ansible-galaxy collection install community.general + +- block: + - name: Upgrade base OS + apk: upgrade=yes update_cache=yes + + - name: Set Alpine base packages + set_fact: + alpine_base_packages: + - git + - tmux + - htop + - strace + - mosh + - vim + - unzip + - zstd + + - name: Install Alpine base packages + apk: name={{ alpine_base_packages }} state=present update_cache=yes + + #- name: Install tarsnap + # import_tasks: tarsnap.yml + tags: packages + +# vim: set sw=2 ts=2: