community.windows.win_data_deduplication module – Module to enable Data Deduplication on a volume.
Note
This module is part of the community.windows collection (version 1.11.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_data_deduplication
.
Synopsis
This module can be used to enable Data Deduplication on a Windows volume.
The module will install the FS-Data-Deduplication feature (a reboot will be necessary).
Parameters
Parameter |
Comments |
---|---|
Windows drive letter on which to enable data deduplication. |
|
Dictionary of settings to pass to the Set-DedupVolume powershell command. |
|
Minimum file age you want to target for deduplication. Default: |
|
Minimum file size you want to target for deduplication. It will default to 32768 if not defined or if the value is less than 32768. Default: |
|
Wether you want to enabled filesystem compression or not. Choices:
|
|
Indicates that the server attempts to optimize currently open files. Choices:
|
|
Indicates whether the deduplication engine performs a byte-for-byte verification for each duplicate chunk that optimization creates, rather than relying on a cryptographically strong hash. This option is not recommend. Setting this parameter to True can degrade optimization performance. Choices:
|
|
Wether to enable or disable data deduplication on the selected volume. Choices:
|
Examples
- name: Enable Data Deduplication on D
community.windows.win_data_deduplication:
drive_letter: 'D'
state: present
- name: Enable Data Deduplication on D
community.windows.win_data_deduplication:
drive_letter: 'D'
state: present
settings:
no_compress: true
minimum_file_age_days: 1
minimum_file_size: 0