pve: skip change dedup when already set
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user