Linux needs zrepl's config in a different location.
This commit is contained in:
parent
3c72b7c5ee
commit
cce1a0ca46
@ -16,7 +16,7 @@ users:
|
||||
- homeassistant
|
||||
gitconfig: "gitconfig_home"
|
||||
zfs_snapshot_datasets:
|
||||
- zroot/linux/archmain/home
|
||||
# - zroot/linux/archmain/home
|
||||
- zroot/linux/archmain/be
|
||||
install_graphics: true
|
||||
graphics_driver: "intel"
|
||||
|
@ -1,25 +1,5 @@
|
||||
- name: Create directories
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- /usr/local/etc/zrepl
|
||||
|
||||
- import_tasks: tasks/freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
- import_tasks: tasks/linux.yaml
|
||||
when: 'os_flavor == "linux"'
|
||||
|
||||
- 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"
|
||||
|
@ -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 }}"
|
||||
|
@ -20,6 +20,26 @@
|
||||
- zrepl
|
||||
state: present
|
||||
|
||||
- name: Create directories
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- /etc/zrepl
|
||||
|
||||
- name: Configure zrepl
|
||||
template:
|
||||
src: templates/zrepl.yml.j2
|
||||
dest: /etc/zrepl/zrepl.yml
|
||||
mode: 0440
|
||||
owner: root
|
||||
group: wheel
|
||||
validate: "zrepl configcheck --config %s"
|
||||
notify: "restart zrepl"
|
||||
|
||||
- name: Enable services
|
||||
systemd:
|
||||
enabled: yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user