Rename service-data to volume-data for syncoid
This commit is contained in:
parent
48fe1e2496
commit
da2236a6cd
@ -9,4 +9,4 @@
|
||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: INFO: .*$
|
||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: NEWEST SNAPSHOT: .*$
|
||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: Sending incremental .*$
|
||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ systemd\[[0-9]+\]: Finished (Snapshot ZFS filesystems|Prune ZFS snapshots|Replicate service data snapshots)\.$
|
||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ systemd\[[0-9]+\]: Finished (Snapshot ZFS filesystems|Prune ZFS snapshots|Replicate volume data snapshots)\.$
|
||||
|
@ -1,7 +1,8 @@
|
||||
[Unit]
|
||||
Description=Replicate service data snapshots
|
||||
Description=Replicate volume data snapshots
|
||||
Documentation=man:syncoid(8)
|
||||
After=sanoid.service
|
||||
Before=sanoid-prune.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
@ -15,20 +15,20 @@
|
||||
|
||||
- name: Copy service for {{ ansible_hostname }} data replication
|
||||
template:
|
||||
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/syncoid-service-data.service.j2
|
||||
dest: /etc/systemd/system/syncoid-service-data.service
|
||||
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/syncoid-volume-data.service.j2
|
||||
dest: /etc/systemd/system/syncoid-volume-data.service
|
||||
mode: 0644
|
||||
register: systemd_syncoid_service_data_service_file
|
||||
register: systemd_syncoid_volume_data_service_file
|
||||
|
||||
- name: SystemD daemon reload
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
when:
|
||||
systemd_syncoid_service_data_service_file is changed
|
||||
systemd_syncoid_volume_data_service_file is changed
|
||||
|
||||
- name: Enable the replication service
|
||||
systemd:
|
||||
name: syncoid-service-data.service
|
||||
name: syncoid-volume-data.service
|
||||
enabled: yes
|
||||
|
||||
- name: Enable the sanoid timer
|
||||
|
Loading…
Reference in New Issue
Block a user