pve: skip change dedup when already set

This commit is contained in:
2025-08-03 13:27:49 +03:00
parent c8193bcaca
commit 6dc2db4957

View File

@@ -72,7 +72,12 @@
regexp: 'WATCHDOG_MODULE=ipmi_watchdog$'
line: 'WATCHDOG_MODULE=ipmi_watchdog'
- name: dedup on rpool
- name: rpool dedup get
ansible.builtin.shell: "zfs get dedup rpool -H | awk '{ print $3 }'"
changed_when: false
register: dedup
- name: rpool dedup set on
when: "dedup.stdout != 'on'"
ansible.builtin.shell: zfs set dedup=on rpool
# https://forum.proxmox.com/threads/problem-activating-memory-hotplug.66790/ https://lists.proxmox.com/pipermail/pve-devel/2016-December/024519.html can reproduce in 2020, 2022, 2025