Ansible Role dnf_makecache¶
This role manages the dnf-makecache.service and dnf-makecache.timer units. By default both are disabled and stopped, which is what most servers want — DNF caches are refreshed on demand and the periodic refresh is rarely needed.
This role is Red Hat-family only (DNF / YUM). It does not run on Debian / Ubuntu.
Available since LFOps 2.0.0.
Optional Role Variables¶
dnf_makecache__service_enabled
Whether
dnf-makecache.serviceis enabled at boot, analogous tosystemctl enable / disable.Type: Bool.
Default:
false
dnf_makecache__service_state
State of
dnf-makecache.service, analogous tosystemctl start / stop / restart / reload.Type: String. One of
reloaded,restarted,started,stopped.Default:
'started'ifdnf_makecache__service_enabledistrue, otherwise'stopped'.
dnf_makecache__timer_enabled
Whether
dnf-makecache.timeris enabled at boot.Type: Bool.
Default:
false
dnf_makecache__timer_state
State of
dnf-makecache.timer.Type: String. One of
reloaded,restarted,started,stopped.Default:
'started'ifdnf_makecache__timer_enabledistrue, otherwise'stopped'.
Example:
# optional
dnf_makecache__service_enabled: false
dnf_makecache__timer_enabled: false