Add linux support for the zrepl role.

This commit is contained in:
Tom Alexander 2022-10-11 19:52:53 -04:00
parent 87c6ad5c5a
commit b1532c38cc
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1 @@
zrepl_enable="YES"

View File

@ -8,7 +8,7 @@
file: file:
name: "{{ item }}" name: "{{ item }}"
state: directory state: directory
mode: 0750 mode: 0755
owner: root owner: root
group: wheel group: wheel
loop: loop:

View File

@ -0,0 +1,10 @@
- name: Enable services
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
owner: root
group: wheel
loop:
- src: rc.conf
dest: /etc/rc.conf.d/zrepl

View File

@ -0,0 +1,7 @@
- name: Enable services
systemd:
enabled: yes
name: "{{ item }}"
daemon_reload: yes
loop:
- zrepl.service