apt module to support --no-install-recommends

Hi,

I would like to add an option to the apt module so that is supports the very handy option: --no-install-recommends

By default, apt automatically installs recommended packages, but not suggested packages. Usually, this is fine, but when it comes to anything Java related, the number of recommended packages explodes.

The apt module line could look like this:

action: apt pkg=openjdk-6-jdk state=latest install-recommends=false

with the default being install-recommends=true so it acts the same way it does now.

Thoughts?

Sounds reasonable.

Ansible standardizes on yes/no versus True, False, so just make that part consistent…

OK, will do.

Peter

PR here:
https://github.com/ansible/ansible/pull/546

Please let me know if you have any feedback.

I have tested it with defaults, with “yes” and with “no”, and all do what they are suppose to.

Peter