Skip to content

Commit a512e90

Browse files
committed
extract variable for download_cache_dir
1 parent 57bb0e2 commit a512e90

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

roles/cache/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22

3-
- name: Add systemd-tmpfiles configuration for /var/cache/downloads
3+
- name: Add systemd-tmpfiles configuration for {{ download_cache_dir }}
44
copy:
55
content: |
66
# See tmpfiles.d(5) for details
77
88
# Create a download cache directory without automatic deletion
9-
d /var/cache/downloads 1777 root root -
9+
d {{ download_cache_dir }} 1777 root root -
1010
dest: /etc/tmpfiles.d/downloads.conf
1111
mode: 0644
1212
notify:

roles/cache/vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
download_cache_dir: /var/cache/downloads

0 commit comments

Comments
 (0)