From 218de16174d69a568edf3abee95794575885f407 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 19 Sep 2023 15:15:29 +0200 Subject: get rid of install_recommends=false for apt packages It will help to switch to the generic ansible.builtin.package module; it is also better to configure it globally anyway. --- roles/apt/tasks/main.yml | 2 -- roles/apt/tasks/unattended_upgrades.yml | 1 - 2 files changed, 3 deletions(-) (limited to 'roles/apt/tasks') diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 6e6004a..d84a687 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -3,7 +3,6 @@ ansible.builtin.apt: update_cache: true upgrade: dist - install_recommends: false notify: apt_reboot - name: Reboot if necessary @@ -20,7 +19,6 @@ ansible.builtin.apt: name: '{{ apt_packages }}' state: present - install_recommends: false when: apt_packages | length > 0 - name: Configure unattended-upgrades diff --git a/roles/apt/tasks/unattended_upgrades.yml b/roles/apt/tasks/unattended_upgrades.yml index 938c903..7bcc124 100644 --- a/roles/apt/tasks/unattended_upgrades.yml +++ b/roles/apt/tasks/unattended_upgrades.yml @@ -3,7 +3,6 @@ ansible.builtin.apt: name: unattended-upgrades state: present - install_recommends: false - name: Configure 50unattended-upgrades become: true -- cgit v1.2.3