Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FUSS
fuss-client
Commits
6f9ba551
Commit
6f9ba551
authored
May 04, 2022
by
Paolo Dongilli
Browse files
allowed unattended-upgrades both on AC and DC power
parent
ae1f25ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansible/roles/unattended-apt/tasks/main.yml
View file @
6f9ba551
...
...
@@ -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
"
tru
e";'
line
:
'
Unattended-Upgrade::OnlyOnACPower
"
fals
e";'
state
:
present
# create override for anacron systemd unit so that it can run
# when not on ac power
...
...
@@ -67,4 +72,4 @@
ConditionACPower=false
dest
:
"
/etc/systemd/system/anacron.service.d/on-ac.conf"
notify
:
-
reload systemd-daemon
\ No newline at end of file
-
reload systemd-daemon
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment