Create the runtime directory.

This commit is contained in:
Andrea Dell'Amico 2020-06-17 18:55:39 +02:00
parent fe375e7562
commit 0e57545830
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
- name: Create the keepalive script user directory - 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 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 - 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 template: src=tmpfile_keepalived.conf.j2 dest=/usr/lib/tmpfiles.d/keepalived.conf owner=root group=root mode=0644
when: ansible_service_mgr == 'systemd' when: ansible_service_mgr == 'systemd'