Commit af13893 1 parent 078cedd commit af13893 Copy full SHA for af13893
File tree 11 files changed +52
-104
lines changed
tests/integration/targets
prepare_vmware_tests/tasks
vmware_host_auto_start/tasks
vmware_resource_pool/tasks
11 files changed +52
-104
lines changed Original file line number Diff line number Diff line change
1
+ deprecated_features :
2
+ - vmware_maintenancemode - the module has been deprecated and will be removed in community.vmware 7.0.0
3
+ (https://github.com/ansible-collections/community.vmware/pull/2293).
Original file line number Diff line number Diff line change 18
18
- vmware
19
19
- virtualization
20
20
dependencies :
21
- vmware.vmware : " >=1.5 .0,<2.0.0"
21
+ vmware.vmware : " >=1.9 .0,<2.0.0"
22
22
repository : https://github.com/ansible-collections/community.vmware.git
23
23
homepage : https://github.com/ansible-collections/community.vmware
24
24
issues : https://github.com/ansible-collections/community.vmware/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
Original file line number Diff line number Diff line change @@ -214,3 +214,7 @@ plugin_routing:
214
214
deprecation :
215
215
removal_version : 6.0.0
216
216
warning_text : Use vmware.vmware.cluster_vcls instead.
217
+ vmware_maintenancemode :
218
+ deprecation :
219
+ removal_version : 7.0.0
220
+ warning_text : Use vmware.vmware.esxi_maintenance_mode instead.
Original file line number Diff line number Diff line change 13
13
DOCUMENTATION = r'''
14
14
---
15
15
module: vmware_maintenancemode
16
+ deprecated:
17
+ removed_in: 7.0.0
18
+ why: This module has been moved to the L(new vmware.vmware collection,https://forum.ansible.com/t/5880)
19
+ alternative: Use M(vmware.vmware.esxi_maintenance_mode) instead.
16
20
short_description: Place a host into maintenance mode
17
21
description:
18
22
- This module can be used for placing a ESXi host into maintenance mode.
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Enter maintenance mode
3
- vmware_maintenancemode :
3
+ vmware.vmware.esxi_maintenance_mode :
4
4
hostname : " {{ vcenter_hostname }}"
5
5
username : " {{ vcenter_username }}"
6
6
password : " {{ vcenter_password }}"
7
7
validate_certs : false
8
- esxi_hostname : " {{ item }}"
9
- state : present
8
+ esxi_host_name : " {{ item }}"
9
+ enable_maintenance_mode : true
10
10
with_items : " {{ esxi_hosts }}"
11
11
ignore_errors : true
12
12
24
24
ignore_errors : true
25
25
26
26
- name : Exit maintenance mode
27
- vmware_maintenancemode :
27
+ vmware.vmware.esxi_maintenance_mode :
28
28
hostname : " {{ vcenter_hostname }}"
29
29
username : " {{ vcenter_username }}"
30
30
password : " {{ vcenter_password }}"
31
31
validate_certs : false
32
- esxi_hostname : " {{ item }}"
33
- state : absent
32
+ esxi_host_name : " {{ item }}"
33
+ enable_maintenance_mode : false
34
34
with_items : " {{ esxi_hosts }}"
35
35
ignore_errors : true
Original file line number Diff line number Diff line change 13
13
with_items : " {{ esxi_hosts }}"
14
14
15
15
- name : Disable the Maintenance Mode
16
- vmware_maintenancemode :
17
- esxi_hostname : ' {{ item }}'
18
- state : absent
16
+ vmware.vmware.esxi_maintenance_mode :
17
+ hostname : " {{ vcenter_hostname }}"
18
+ username : " {{ vcenter_username }}"
19
+ password : " {{ vcenter_password }}"
20
+ validate_certs : false
21
+ esxi_host_name : ' {{ item }}'
22
+ enable_maintenance_mode : false
19
23
with_items : " {{ esxi_hosts }}"
20
24
21
25
# A bit of explanation here. Our test VMs will produce some ARP traffic,
Original file line number Diff line number Diff line change 21
21
with_items : " {{ esxi_hosts }}"
22
22
23
23
- name : Disable the Maintenance Mode
24
- vmware_maintenancemode :
25
- esxi_hostname : ' {{ item }}'
26
- state : absent
24
+ vmware.vmware.esxi_maintenance_mode :
25
+ hostname : " {{ vcenter_hostname }}"
26
+ username : " {{ vcenter_username }}"
27
+ password : " {{ vcenter_password }}"
28
+ validate_certs : false
29
+ esxi_host_name : ' {{ item }}'
30
+ enable_maintenance_mode : false
27
31
with_items : " {{ esxi_hosts }}"
28
32
29
33
- name : Create VM on esxi1
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 231
231
block :
232
232
# Remove ESXi host from cluster for tests
233
233
- name : Enter maintenance mode
234
- vmware_maintenancemode :
234
+ vmware.vmware.esxi_maintenance_mode :
235
235
hostname : " {{ vcenter_hostname }}"
236
236
username : " {{ vcenter_username }}"
237
237
password : " {{ vcenter_password }}"
238
238
validate_certs : false
239
- esxi_hostname : " {{ esxi2 }}"
240
- state : present
239
+ esxi_host_name : " {{ esxi2 }}"
240
+ enable_maintenance_mode : true
241
241
242
242
- name : Move ESXi out of Cluster
243
243
vmware_host :
251
251
state : reconnect
252
252
253
253
- name : Exit maintenance mode
254
- vmware_maintenancemode :
254
+ vmware.vmware.esxi_maintenance_mode :
255
255
hostname : " {{ vcenter_hostname }}"
256
256
username : " {{ vcenter_username }}"
257
257
password : " {{ vcenter_password }}"
258
258
validate_certs : false
259
- esxi_hostname : " {{ esxi2 }}"
260
- state : absent
259
+ esxi_host_name : " {{ esxi2 }}"
260
+ enable_maintenance_mode : false
261
261
262
262
- name : add resource pool to ESXi with check_mode
263
263
vmware_resource_pool :
Original file line number Diff line number Diff line change 20
20
with_items : ' {{ esxi_hosts }}'
21
21
22
22
- name : Disable the Maintenance Mode
23
- vmware_maintenancemode :
24
- esxi_hostname : ' {{ item }}'
25
- state : absent
23
+ vmware.vmware.esxi_maintenance_mode :
24
+ hostname : ' {{ vcenter_hostname }}'
25
+ username : ' {{ vcenter_username }}'
26
+ password : ' {{ vcenter_password }}'
27
+ validate_certs : false
28
+ esxi_host_name : ' {{ item }}'
29
+ enable_maintenance_mode : false
26
30
with_items : ' {{ esxi_hosts }}'
27
31
28
32
- name : Create VM
91
95
with_items : ' {{ esxi_hosts }}'
92
96
93
97
- name : Disable the Maintenance Mode
94
- vmware_maintenancemode :
95
- esxi_hostname : ' {{ item }}'
96
- state : absent
98
+ vmware.vmware.esxi_maintenance_mode :
99
+ hostname : ' {{ vcenter_hostname }}'
100
+ username : ' {{ vcenter_username }}'
101
+ password : ' {{ vcenter_password }}'
102
+ validate_certs : false
103
+ esxi_host_name : ' {{ item }}'
104
+ enable_maintenance_mode : false
97
105
with_items : ' {{ esxi_hosts }}'
98
106
99
107
- name : Perform vMotion of virtual machine to resource_pool
You can’t perform that action at this time.
0 commit comments