Merge "Use tmpfiles.d to create /var/run/reprepro"

This commit is contained in:
Zuul 2021-06-14 22:57:08 +00:00 committed by Gerrit Code Review
commit d8e3e9b91a

View File

@ -49,6 +49,19 @@
group: root
mode: '0755'
- name: Ensure run directory at boot
copy:
# d means create this directory
# ! means only evaluate this on boot, creating the dir outside of boot
# can break things
# 0755 root root sets perms and ownership
# - omits the age value which means do not delete this directory
content: "d! /var/run/reprepro 0755 root root -"
dest: /etc/tmpfiles.d/reprepro.conf
owner: root
group: root
mode: '0644'
- name: Rotate logfiles
include_role:
name: logrotate