blob: 72f9b7dafb3e7631570867637ebf5862bc0dc9d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
---
- name: NAS Server Module Operations in Unity
hosts: localhost
connection: local
vars:
unispherehost: '10.*.*.*'
validate_certs: false
username: 'user'
password: '**'
nas_server_name: "lglad073"
nas_server_new_name: "new_lglad073"
tasks:
- name: Get NAS Server Details using Name
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "{{ nas_server_name }}"
state: "present"
- name: Rename NAS Server to new Name
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "{{ nas_server_name }}"
nas_server_new_name: "{{ nas_server_new_name }}"
state: "present"
- name: Rename NAS Server to Old Name
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "{{ nas_server_new_name }}"
nas_server_new_name: "{{ nas_server_name }}"
state: "present"
- name: Modify Details of NAS Server
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "{{ nas_server_name }}"
current_unix_directory_service: "NONE"
is_packet_reflect_enabled: true
state: "present"
- name: Enable replication for NAS Server on Local System
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_id: "nas_10"
replication_reuse_resource: false
replication_params:
replication_name: "test_replication"
destination_nas_server_name: "destination_nas"
replication_mode: "asynchronous"
rpo: 60
replication_type: "local"
destination_pool_name: "Pool_Ansible_Neo_DND"
destination_sp: "SPA"
is_backup: true
replication_state: "enable"
state: "present"
- name: Enable replication for NAS Server on Remote System
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_reuse_resource: false
replication_params:
replication_name: "test_replication"
destination_nas_server_name: "destination_nas"
replication_mode: "asynchronous"
rpo: 60
replication_type: "remote"
remote_system:
remote_system_host: '10.*.*.*'
remote_system_verifycert: false
remote_system_username: 'test1'
remote_system_password: 'test1!'
destination_pool_name: "fastVP_pool"
destination_sp: "SPA"
is_backup: true
replication_state: "enable"
state: "present"
- name: Enable replication for NAS Server on Remote System in existing NAS Server
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_reuse_resource: true
replication_params:
destination_nas_server_name: "destination_nas"
replication_mode: "asynchronous"
rpo: 60
replication_type: "remote"
replication_name: "test_replication"
remote_system:
remote_system_host: '10.*.*.*'
remote_system_verifycert: false
remote_system_username: 'test1'
remote_system_password: 'test1!'
destination_pool_name: "fastVP_pool"
replication_state: "enable"
state: "present"
- name: Modify replication for NAS Server
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_params:
replication_name: "test_repl_rename"
new_replication_name: "test_replication"
rpo: 20
replication_mode: "asynchronous"
replication_state: "enable"
state: "present"
- name: Modify replication for NAS Server - Idempotency
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_params:
replication_name: "test_replication"
new_replication_name: "test_repl_rename"
rpo: 20
replication_mode: "asynchronous"
replication_state: "enable"
state: "present"
- name: Disable replication for NAS Server
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_params:
replication_name: "test_replication"
replication_state: "disable"
state: "present"
- name: Disable replication for NAS Server - Idempotency
dellemc.unity.nasserver:
unispherehost: "{{ unispherehost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nas_server_name: "dummy_nas"
replication_params:
replication_name: "test_replication"
replication_state: "disable"
state: "present"
|