From cb8403a0d334cf164a85468bbcd9523c5cd18b2e Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 16 Oct 2020 15:55:54 +0200 Subject: [PATCH] Create a tmpfs at /var/log/haproxy. Fixes #6. --- roles/haproxy/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index c2b81ae..f055533 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -23,6 +23,14 @@ notify: - Restart HAProxy +- name: Add /var/log/haproxy to fstab + mount: + path: /var/log/haproxy + src: tmpfs + fstype: tmpfs + opts: rw,size=128m,mode=750,uid=20000,gid=20000 + state: mounted + - name: Create HAProxy service directories file: path: '/etc/s6-rc/service/{{ item }}'