Jakub Kadlcik
2a51f32eaf
dnf-automatic: create the drop-in file if it doesn't already exist
2025-02-14 10:35:48 +01:00
Jakub Kadlcik
fa9a8edeb0
dnf-automatic: create a drop-in for the Mon..Fri configuration
...
See https://github.com/fedora-copr/copr/issues/3623#issuecomment-2656844947
2025-02-14 09:22:21 +00:00
Adam Williamson
67e839a390
dnf-automatic: add a create: false
to an inifile task
...
This is safer (won't cause it to be created with unpredictable
mode/ownership if it doesn't exist).
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-15 09:25:15 -08:00
Adam Williamson
9e594966a9
dnf-automatic role: clean up, make compatible with dnf5
...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-12 17:15:44 -08:00
Miroslav Suchý
7c81f6d81b
run dnf-automatic only on Mon-Fri
2024-08-26 21:13:55 +00:00
Pavel Raiskup
cc79e327dc
dnf-automatic: disable the makecache timer, not the service
...
Service can be unmasked, as long as nobody triggers it. If we do it the
other way arount, we see this every-time we log-in on F33+:
Last login: Fri Nov 13 09:15:56 2020 from 193.165.237.101
[systemd]
Failed Units: 1
dnf-makecache.timer
Which is:
systemctl status dnf-makecache.timer
...
...: dnf-makecache.timer: Failed to queue unit startup job: Unit dnf-makecache.service is masked.
...: dnf-makecache.timer: Failed with result 'resources'.
2020-11-16 16:02:20 +01:00
Kevin Fenzi
c5291dc402
dnf-automatic: disable updates repo on initial install.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
81fb4582e7
ansible: change when conditions to use == instead of is when checking strings.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:10 +02:00
Karsten Hopp
c9ed62ac32
update ansible_distribution_major_version conditionals
...
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00
Kevin Fenzi
43c318a288
dnf-automatic: stdout seems to always be defined, even if empty. Switch to looking at the return code.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-06 21:56:33 +00:00
Kevin Fenzi
135bc9837d
dnf-automatic: variables cannot use -
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2018-12-30 18:44:39 +00:00
Kevin Fenzi
9e2e121b25
dnf-automatic: just change to any stdout showing change as no change has no output.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2018-12-30 18:41:23 +00:00
Kevin Fenzi
fcd5b3da20
dnf-automatic: Add a check to make sure there is any stdout before looking at it.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2018-12-30 18:38:58 +00:00
Kevin Fenzi
82c3fba9b8
dnf-automatic: Change the way enabling dnf-automatic detects changes.
...
For some reason on some hosts it creates the wants in basic target and in others multi-user target,
so the creates won't work on all machines. Instead we just run it all the time and check the output
to see if it did something or not.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2018-12-30 18:35:31 +00:00
Kevin Fenzi
028181efb6
change the target for the creates call on dnf-automatic. Our hosts should be all multi-user, not basic
2018-12-20 22:08:21 +00:00
Kevin Fenzi
b925b48901
work around systemd/ansible bug for f29 and rawhide test machines
2018-09-11 18:13:41 +00:00
Kevin Fenzi
d8d79f7933
more adjusting to ansible not wanting | in when
2018-04-04 22:52:22 +00:00
Kevin Fenzi
236302efb4
disable dnf makecache timer on all fedora boxes
2017-12-07 20:51:19 +00:00
Kevin Fenzi
9fd11ac016
an ordering issue? really?
2017-03-17 21:37:21 +00:00
Kevin Fenzi
41f43d4b8f
fix more
2017-03-17 21:34:52 +00:00
Kevin Fenzi
d5e8e3a1d6
fix dnf-automatic role for f26
2017-03-17 21:21:38 +00:00
Kevin Fenzi
4f3501db0e
fix conditional
2017-02-28 00:34:23 +00:00
Kevin Fenzi
def29b08c7
because of course dnf-automatic changes in f26, why keep a stable interface
2017-02-28 00:29:27 +00:00
Kevin Fenzi
b1a2d105c9
In ansible 2.2 always_run is depreciated. Switch to check_mode.
2016-11-01 16:29:49 +00:00
Kevin Fenzi
6b86434251
Fix when clause to actually work.
2016-08-08 16:52:28 +00:00
Michael Scherer
5cce9c0030
Refactor the whole playbook in a block
...
Also switch the condition, since it is possible that
future EL version might use dnf, so checking on Fedora
distribution is less future-proof than using the pkg_mgr
from ansible.
2016-08-08 16:33:23 +00:00
Michael Scherer
186b357b48
Use pure yaml format for tasks
2016-08-08 16:33:17 +00:00
Michael Scherer
d5b93c4d50
Whitespace cleanup, make ansible-lint happy
2016-08-08 16:33:10 +00:00
Miroslav Suchý
15dabba643
run dnf-automatic only for recent Fedoras
...
copr-keygen is still on F21 and it fails there
2016-01-04 13:16:52 +01:00
Kevin Fenzi
196af16b23
I can speel. Really I can.
2015-12-08 18:53:51 +00:00
Kevin Fenzi
205b10441a
Also ignore errors here.
2015-12-08 18:52:06 +00:00
Kevin Fenzi
d36f2cfa79
Fix thinko
2015-12-08 18:50:24 +00:00
Kevin Fenzi
1fed3a1d2c
Rework logic to handle f22 systemd
2015-12-08 18:48:07 +00:00
Kevin Fenzi
dc6f14bd31
Create a dnf-automatic role, and switch taskotron/resultsdb dev to use it.
2015-12-08 18:38:40 +00:00