Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_data_deduplication/tasks/tests.yml

raw
1 ---
2
3 - name: Enable Data Deduplication on the T drive - check mode
4 win_data_deduplication:
5 drive_letter: "T"
6 state: present
7 settings:
8 no_compress: true
9 minimum_file_age_days: 2
10 minimum_file_size: 0
11 check_mode: yes
12 register: win_data_deduplication_enable_check_mode
13
14 - name: Check that it was successful with a change - check mode
15 assert:
16 that:
17 - win_data_deduplication_enable_check_mode is changed
18
19 - name: Enable Data Deduplication on the T drive
20 win_data_deduplication:
21 drive_letter: "T"
22 state: present
23 settings:
24 no_compress: true
25 minimum_file_age_days: 2
26 minimum_file_size: 0
27 register: win_data_deduplication_enable
28
29 - name: Check that it was successful with a change
30 assert:
31 that:
32 - win_data_deduplication_enable is changed
33
34 - name: Enable Data Deduplication on the T drive
35 win_data_deduplication:
36 drive_letter: "T"
37 state: present
38 settings:
39 no_compress: true
40 minimum_file_age_days: 2
41 minimum_file_size: 0
42 register: win_data_deduplication_enable_again
43
44 - name: Check that it was successful without a change
45 assert:
46 that:
47 - win_data_deduplication_enable_again is not changed