Closed msabramo closed 8 years ago
Hmmm, I don't see the Ansible code doing this so probably when the apt package is installed, this file gets dropped. So maybe we should add something like:
- name: remove 20auto-upgrades.ucf-dist if present
file: path=/etc/apt/apt.conf.d/20auto-upgrades.ucf-dist state=absent
?
Hmmm, maybe it's not coming at all from this role and it's coming from me manually installing stuff and then when I get prompted what to do about the config files?
http://manpages.ubuntu.com/manpages/trusty/man1/ucf.1.html
This utility provides a means of asking the user whether or not to accept new versions of configuration files provided by the package maintainer, with various heuristics designed to minimize interaction time.
During the course of operations, when working with configuration files, ucf optionally creates copies of versions of the configuration file in question. For example, a file with the suffix ucf-old holds the old version of a configuration file replaced by ucf. Also, copies of the configuration file with the suffixes ucf-new and ucf-dist may be created; and the maintainer scripts should consider purging copies of the configuration file with these extensions during purge.
Hey Marc, thanks for report! I'm not sure either, but it is likely that you ran into conflict with configuration files, though I'm not sure how could that happen. The role installs the package first and then it writes 20auto-upgrades
file. Did you install unattended-upgrades manually or with other role? Also, could you please show me the diff between 20auto-upgrades
and 20auto-upgrades.ucf-dist
?
Sorry but I can't help you with this issue without further information. Please tell me if you learn more, I will close this in meantime.
Hey ... i Have The same Err .. :( Bad Luck !
What i did is sudo rm /etc/apt/apt.conf.d/20auto-upgrades.ucf-d
and The Err is Died :+1:
After using this role on a couple of machines, it set up unattended upgrades (yay!), but it seems that it might be leaving behind a file
/etc/apt/apt.conf.d/20auto-upgrades.ucf-dist
?I'll try to take a look and see if I can figure out what's going on.