Replace dest with path
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
- name: snapper - /etc/fstab
|
- name: snapper - /etc/fstab
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/fstab
|
path: /etc/fstab
|
||||||
line: "{{ snapper_blkid.stdout_lines[0] }} /.snapshots btrfs subvol=.snapshots 0 1"
|
line: "{{ snapper_blkid.stdout_lines[0] }} /.snapshots btrfs subvol=.snapshots 0 1"
|
||||||
when: snapper_blkid.stdout_lines is defined
|
when: snapper_blkid.stdout_lines is defined
|
||||||
notify: snapper - reload fstab
|
notify: snapper - reload fstab
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
- name: zfs - zfs-auto-snapshot prefix
|
- name: zfs - zfs-auto-snapshot prefix
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ item }}"
|
path: "{{ item }}"
|
||||||
regexp: (.*zfs-auto-snapshot.*\d+)\ \ \/\/
|
regexp: (.*zfs-auto-snapshot.*\d+)\ \ \/\/
|
||||||
line: \1 --prefix= //
|
line: \1 --prefix= //
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user