diff options
Diffstat (limited to 'roles/fedora/tasks')
-rw-r--r-- | roles/fedora/tasks/dnf.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/fedora/tasks/dnf.yml b/roles/fedora/tasks/dnf.yml index 6b3ad74..4a3e623 100644 --- a/roles/fedora/tasks/dnf.yml +++ b/roles/fedora/tasks/dnf.yml @@ -32,4 +32,15 @@ tags: - packages +- name: Configure dnf-makecache timer + systemd: + name: dnf-makecache.timer + enabled: "{{ dnf_makecache|ternary('yes','no') }}" + masked: no + state: "{{ dnf_makecache|ternary('started','stopped') }}" + when: not chroot +- name: '- when in chroot' + command: 'systemctl {{ dnf_makecache|ternary("enable","disable") }} dnf-makecache.timer' + when: chroot + # vim: set ts=2 sw=2 et: |