jnv / ansible-role-unattended-upgrades

[DEPRECATED] Setup unattended-upgrades on Debian-based systems
https://github.com/jnv/ansible-role-unattended-upgrades/issues/98
GNU General Public License v2.0
272 stars 94 forks source link

Adds support for Dpkg::Options #41

Closed conorsch closed 6 years ago

conorsch commented 6 years ago

Creates new default role var unattended_dpkg_options, set to an empty list. The default behavior of the role does not change.

For those interested, additional options can be applied to dpkg during unattended upgrades runs by declaring them as a list, e.g.

unattended_dpkg_options:
  - "--force-confdef"
  - "--force-confold"

The above flags are necessary to ensure unattended-upgrades complete even when conf file changes were detected (which prompts during interactive upgrades).

conorsch commented 6 years ago

@jnv Are these changes suitable for merge? Made sure to include docs changes, and the default role behavior is preserved.

jnv commented 6 years ago

Thank you Conor and sorry for the late response, I had other stuff to attend to. This is perfect, I've just clarified the readme description a bit. I will publish this as 1.4.0.