From 0e57545830983bde66e43342358e36c18d00d6ce Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 17 Jun 2020 18:55:39 +0200 Subject: [PATCH] Create the runtime directory. --- tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 66e24cf..507ab19 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,6 +19,9 @@ - name: Create the keepalive script user directory file: dest={{ keepalived_script_user_home }} state=directory owner={{ keepalived_script_username }} group={{ keepalived_script_username }} mode=0750 + - name: Create the keepalived directory under /run if it does not exist yet. dbus creates it when restarts + file: dest={{ keepalived_runtime_dir }} state=directory owner={{ keepalived_script_username }} group={{ keepalived_script_username }} mode=0750 + - name: Create the tmpfile entry for the keepalived runtime directory template: src=tmpfile_keepalived.conf.j2 dest=/usr/lib/tmpfiles.d/keepalived.conf owner=root group=root mode=0644 when: ansible_service_mgr == 'systemd'