Linux needs zrepl's config in a different location.

This commit is contained in:
Tom Alexander
2023-03-04 08:42:53 -05:00
parent 3c72b7c5ee
commit cce1a0ca46
4 changed files with 41 additions and 21 deletions

View File

@@ -4,6 +4,26 @@
- zrepl
state: present
- name: Create directories
file:
name: "{{ item }}"
state: directory
mode: 0755
owner: root
group: wheel
loop:
- /usr/local/etc/zrepl
- name: Configure zrepl
template:
src: templates/zrepl.yml.j2
dest: /usr/local/etc/zrepl/zrepl.yml
mode: 0440
owner: root
group: wheel
validate: "zrepl configcheck --config %s"
notify: "restart zrepl"
- name: Enable services
copy:
src: "files/{{ item.src }}"