aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/apt/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 19:32:53 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 19:32:53 +0200
commitf8a3dfb40e72818286f0fb18efe099d01f129fe7 (patch)
tree11201e25a7b9fd798938cfbea6e168a6046beb92 /roles/apt/tasks/main.yml
parentREADME: update (diff)
downloadinfra-ansible-f8a3dfb40e72818286f0fb18efe099d01f129fe7.tar.gz
infra-ansible-f8a3dfb40e72818286f0fb18efe099d01f129fe7.zip
apt: add a parameter to install packages
Diffstat (limited to 'roles/apt/tasks/main.yml')
-rw-r--r--roles/apt/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml
index f26a1f7..63f3ed7 100644
--- a/roles/apt/tasks/main.yml
+++ b/roles/apt/tasks/main.yml
@@ -18,3 +18,10 @@
- name: Reboot if necessary
ansible.builtin.meta: flush_handlers
+
+- name: Install extra packages
+ become: true
+ ansible.builtin.apt:
+ install_recommends: false
+ name: '{{ apt_extra_packages }}'
+ state: present