Debian Codegraph @

ansible_collections/dellemc/unity/playbooks/modules/nasserver.yml

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