aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:15:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:15:32 +0200
commit218de16174d69a568edf3abee95794575885f407 (patch)
tree41ea8bd9a3bb39165113e5bfeb9822d4d09db85f /roles
parentsystemd_depend_*: don't restart services (diff)
downloadinfra-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.yml2
-rw-r--r--roles/apt/tasks/unattended_upgrades.yml1
-rw-r--r--roles/docker/tasks/main.yml1
-rw-r--r--roles/linux_status/tasks/main.yml1
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