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
# 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
path: /etc/apt/apt.conf.d/50unattended-upgrades
regexp: 'OnlyOnACPower "true"'
replace: 'OnlyOnACPower "false"'
- name: Allow update both on AC and DC power
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
......@@ -67,4 +72,4 @@
dest: "/etc/systemd/system/anacron.service.d/on-ac.conf"
- reload systemd-daemon
\ No newline at end of file
- reload systemd-daemon
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