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'.
This commit is contained in:
Pavel Raiskup 2020-11-16 15:59:59 +01:00
parent 9a98e75674
commit cc79e327dc

View file

@ -83,7 +83,7 @@
when: automaticative is failed and ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
- name: disable silly makecache timer
systemd: name=dnf-makecache masked=yes
systemd: name=dnf-makecache.timer masked=yes
ignore_errors: true
when: ansible_pkg_mgr == 'dnf'