Browse Source

misc: avoiding the conffile prompt

https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/

Fixes: main/infrastructure#297
keep-around/3b7d9e100089bf3f6562424ef223451874319580
Loïc Dachary 7 months ago
committed by Loic Dachary
parent
commit
3b7d9e1000
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 9
      playbooks/misc/upgrades-playbook.yml

9
playbooks/misc/upgrades-playbook.yml

@ -17,3 +17,12 @@
sed -i -e 's/.*Unattended-Upgrade::Automatic-Reboot .*/Unattended-Upgrade::Automatic-Reboot "true";/' \
-e 's/.*Unattended-Upgrade::Automatic-Reboot-Time .*/Unattended-Upgrade::Automatic-Reboot-Time "02:00";/' \
/etc/apt/apt.conf.d/50unattended-upgrades
- name: Dpkg::Options { "--force-confdef"; "--force-confold"; }
copy:
content: |
Dpkg::Options { "--force-confdef"; "--force-confold"; }
dest: /etc/apt/apt.conf.d/99force-conf
owner: root
group: root
mode: '0644'
Loading…
Cancel
Save