taskotron-client: make sure tmpfiles don't erase our dirs

tmpfiles daemon used to delete /var/tmp/taskotron which we don't want
This commit is contained in:
Kamil Páral 2019-02-08 12:58:57 +01:00
parent e89337e6c5
commit 581b53994f
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# Configure tmpfiles for Taskotron use. Read 'man 5 tmpfiles.d' to understand
# how it works exactly.
#Type Path Mode UID GID Age Argument
# Make sure /var/tmp/taskotron is ignored and never removed. Contents can be.
X /var/tmp/taskotron - - - 1w -

View file

@ -1,4 +1,8 @@
---
- name: install tmpfiles.d Taskotron config
copy: src=tmpfiles-taskotron.conf dest=/etc/tmpfiles.d/taskotron.conf owner=root group=root mode=0600
when: deployment_type != 'local'
- name: ensure packages required for libtaskotron are installed
dnf: name={{ item }} state=present
with_items: