diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-19 15:15:29 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-19 15:15:32 +0200 |
commit | 218de16174d69a568edf3abee95794575885f407 (patch) | |
tree | 41ea8bd9a3bb39165113e5bfeb9822d4d09db85f /roles | |
parent | systemd_depend_*: don't restart services (diff) | |
download | infra-ansible-218de16174d69a568edf3abee95794575885f407.tar.gz infra-ansible-218de16174d69a568edf3abee95794575885f407.zip |
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.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/apt/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/apt/tasks/unattended_upgrades.yml | 1 | ||||
-rw-r--r-- | roles/docker/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/linux_status/tasks/main.yml | 1 |
4 files changed, 0 insertions, 5 deletions
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 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 242a500..f4ba814 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -5,7 +5,6 @@ - docker.io - docker-compose state: present - install_recommends: false policy_rc_d: 101 notify: docker_restart diff --git a/roles/linux_status/tasks/main.yml b/roles/linux_status/tasks/main.yml index b9884fe..951c838 100644 --- a/roles/linux_status/tasks/main.yml +++ b/roles/linux_status/tasks/main.yml @@ -24,7 +24,6 @@ ansible.builtin.apt: name: linux-status state: present - install_recommends: false policy_rc_d: 101 notify: linux_status_restart |