aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-13 16:20:23 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-13 16:20:23 +0200
commit51c9e2e956a3b7cf61c09584b318bde76ff07503 (patch)
tree3536ca6fcd855e748cac3e722b638c57feb34f12 /roles
parentpacman: add a parameter to install additional packages (diff)
downloadinfra-ansible-51c9e2e956a3b7cf61c09584b318bde76ff07503.tar.gz
infra-ansible-51c9e2e956a3b7cf61c09584b318bde76ff07503.zip
apt: the extra packages are optional
Diffstat (limited to 'roles')
-rw-r--r--roles/apt/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml
index 530519d..b9bb12b 100644
--- a/roles/apt/tasks/main.yml
+++ b/roles/apt/tasks/main.yml
@@ -22,6 +22,7 @@
name: '{{ apt_packages }}'
state: present
install_recommends: false
+ when: apt_packages | length > 0
- name: Configure unattended-upgrades
ansible.builtin.include_tasks: unattended_upgrades.yml