From 51c9e2e956a3b7cf61c09584b318bde76ff07503 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 13 Sep 2023 16:20:23 +0200 Subject: apt: the extra packages are optional --- roles/apt/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/apt') 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 -- cgit v1.2.3