Skip to content

Commit 6e853f0

Browse files
committed
simplify creation of cache directory, no handler is needed
1 parent a512e90 commit 6e853f0

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

roles/cache/handlers/main.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

roles/cache/tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
d {{ download_cache_dir }} 1777 root root -
1010
dest: /etc/tmpfiles.d/downloads.conf
1111
mode: 0644
12-
notify:
13-
- create-systemd-tmpfiles
12+
13+
- name: Ensure {{ download_cache_dir }} is created
14+
command:
15+
cmd: systemd-tmpfiles --create
16+
creates: "{{ download_cache_dir }}"

0 commit comments

Comments
 (0)