Commit 6f9ba551 authored by Paolo Dongilli's avatar Paolo Dongilli
Browse files

allowed unattended-upgrades both on AC and DC power

parent ae1f25ce
......@@ -44,10 +44,15 @@
# see https://gitlab.fuss.bz.it/fuss/fuss-client/-/issues/955
# some PCs are incorrectly detected as "on ac power" and
# we want all PCs to update.
- name: Allow update on AC Power
- name: Allow update both on AC and DC power; replace true to false
replace:
path: /etc/apt/apt.conf.d/50unattended-upgrades
regexp: 'OnlyOnACPower "true"'
replace: 'OnlyOnACPower "false"'
- name: Allow update both on AC and DC power
lineinfile:
dest: /etc/apt/apt.conf.d/50unattended-upgrades
line: 'Unattended-Upgrade::OnlyOnACPower "true";'
line: 'Unattended-Upgrade::OnlyOnACPower "false";'
state: present
# create override for anacron systemd unit so that it can run
# when not on ac power
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment