Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_data_deduplication.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright: 2019, rnsc(@rnsc) <[email protected]>
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: win_data_deduplication
10 short_description: Module to enable Data Deduplication on a volume.
11 description:
12 - This module can be used to enable Data Deduplication on a Windows volume.
13 - The module will install the FS-Data-Deduplication feature (a reboot will be necessary).
14 options:
15 drive_letter:
16 description:
17 - Windows drive letter on which to enable data deduplication.
18 required: yes
19 type: str
20 state:
21 description:
22 - Wether to enable or disable data deduplication on the selected volume.
23 default: present
24 type: str
25 choices: [ present, absent ]
26 settings:
27 description:
28 - Dictionary of settings to pass to the Set-DedupVolume powershell command.
29 type: dict
30 suboptions:
31 minimum_file_size:
32 description:
33 - Minimum file size you want to target for deduplication.
34 - It will default to 32768 if not defined or if the value is less than 32768.
35 type: int
36 default: 32768
37 minimum_file_age_days:
38 description:
39 - Minimum file age you want to target for deduplication.
40 type: int
41 default: 2
42 no_compress:
43 description:
44 - Wether you want to enabled filesystem compression or not.
45 type: bool
46 default: no
47 optimize_in_use_files:
48 description:
49 - Indicates that the server attempts to optimize currently open files.
50 type: bool
51 default: no
52 verify:
53 description:
54 - Indicates whether the deduplication engine performs a byte-for-byte verification for each duplicate chunk
55 that optimization creates, rather than relying on a cryptographically strong hash.
56 - This option is not recommend.
57 - Setting this parameter to True can degrade optimization performance.
58 type: bool
59 default: no
60 author:
61 - rnsc (@rnsc)
62 '''
63
64 EXAMPLES = r'''
65 - name: Enable Data Deduplication on D
66 community.windows.win_data_deduplication:
67 drive_letter: 'D'
68 state: present
69
70 - name: Enable Data Deduplication on D
71 community.windows.win_data_deduplication:
72 drive_letter: 'D'
73 state: present
74 settings:
75 no_compress: true
76 minimum_file_age_days: 1
77 minimum_file_size: 0
78 '''
79
80 RETURN = r'''
81 #
82 '''