Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

apt: install_recommends should relies upon -o APT::Install-Recommends=yes #1189

Closed
drzraf opened this issue Apr 23, 2015 · 0 comments
Closed

Comments

@drzraf
Copy link

drzraf commented Apr 23, 2015

If, on a system: APT::Install-Recommends "false";
is set (eg /etc/apt/apt.conf.d/), then such an Ansible directive:
apt: pkg=bla state=present install_recommends=yes
will not install the packages recommended for bla.

The effective way to set recommends is to pass -o APT::Install-Recommends=(yes|no) to the apt-get run.
That will make install_recommends more reliable.

hlieberman added a commit to hlieberman/ansible-modules-core that referenced this issue Aug 15, 2015
Closes ansible#1189.

This will cause the settings in Ansible to override the system settings.
That will have no effect except on systems that have an out-of-Ansible
configuration that disables automatic installation of recommended
packages.  Previously, ansible would use the OS default whenever
install_recommends wasn't part of the playbook.  This change will cause
the Ansible default configuration setting of installing recommended
packages to override the configuration files set on the OS for things
installed through ansible, even when there is no install_recommends
specified in the playbook.  Because the OS default matches the Ansible
default, this shouldn't have wide impact.
@abadger abadger closed this as completed in baafcfc Nov 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants