|
112 | 112 | '''
|
113 | 113 |
|
114 | 114 | EXAMPLES = r'''
|
115 |
| - - name: Create Filesystem Snapshot |
116 |
| - dellemc.unity.filesystem_snapshot: |
117 |
| - unispherehost: "{{unispherehost}}" |
118 |
| - username: "{{username}}" |
119 |
| - password: "{{password}}" |
120 |
| - validate_certs: "{{validate_certs}}" |
121 |
| - snapshot_name: "ansible_test_FS_snap" |
122 |
| - filesystem_name: "ansible_test_FS" |
123 |
| - nas_server_name: "lglad069" |
124 |
| - description: "Created using playbook" |
125 |
| - auto_delete: true |
126 |
| - fs_access_type: "Protocol" |
127 |
| - state: "present" |
128 |
| -
|
129 |
| - - name: Create Filesystem Snapshot with expiry time |
130 |
| - dellemc.unity.filesystem_snapshot: |
131 |
| - unispherehost: "{{unispherehost}}" |
132 |
| - username: "{{username}}" |
133 |
| - password: "{{password}}" |
134 |
| - validate_certs: "{{validate_certs}}" |
135 |
| - snapshot_name: "ansible_test_FS_snap_1" |
136 |
| - filesystem_name: "ansible_test_FS_1" |
137 |
| - nas_server_name: "lglad069" |
138 |
| - description: "Created using playbook" |
139 |
| - expiry_time: "04/15/2021 2:30" |
140 |
| - fs_access_type: "Protocol" |
141 |
| - state: "present" |
142 |
| -
|
143 |
| - - name: Get Filesystem Snapshot Details using Name |
144 |
| - dellemc.unity.filesystem_snapshot: |
145 |
| - unispherehost: "{{unispherehost}}" |
146 |
| - username: "{{username}}" |
147 |
| - password: "{{password}}" |
148 |
| - validate_certs: "{{validate_certs}}" |
149 |
| - snapshot_name: "ansible_test_FS_snap" |
150 |
| - state: "present" |
151 |
| -
|
152 |
| - - name: Get Filesystem Snapshot Details using ID |
153 |
| - dellemc.unity.filesystem_snapshot: |
154 |
| - unispherehost: "{{unispherehost}}" |
155 |
| - username: "{{username}}" |
156 |
| - password: "{{password}}" |
157 |
| - validate_certs: "{{validate_certs}}" |
158 |
| - snapshot_id: "10008000403" |
159 |
| - state: "present" |
160 |
| -
|
161 |
| - - name: Update Filesystem Snapshot attributes |
162 |
| - dellemc.unity.filesystem_snapshot: |
163 |
| - unispherehost: "{{unispherehost}}" |
164 |
| - username: "{{username}}" |
165 |
| - password: "{{password}}" |
166 |
| - validate_certs: "{{validate_certs}}" |
167 |
| - snapshot_name: "ansible_test_FS_snap" |
168 |
| - description: "Description updated" |
169 |
| - auto_delete: false |
170 |
| - expiry_time: "04/15/2021 5:30" |
171 |
| - state: "present" |
172 |
| -
|
173 |
| - - name: Update Filesystem Snapshot attributes using ID |
174 |
| - dellemc.unity.filesystem_snapshot: |
175 |
| - unispherehost: "{{unispherehost}}" |
176 |
| - username: "{{username}}" |
177 |
| - password: "{{password}}" |
178 |
| - validate_certs: "{{validate_certs}}" |
179 |
| - snapshot_id: "10008000403" |
180 |
| - expiry_time: "04/18/2021 8:30" |
181 |
| - state: "present" |
182 |
| -
|
183 |
| - - name: Delete Filesystem Snapshot using Name |
184 |
| - dellemc.unity.filesystem_snapshot: |
185 |
| - unispherehost: "{{unispherehost}}" |
186 |
| - username: "{{username}}" |
187 |
| - password: "{{password}}" |
188 |
| - validate_certs: "{{validate_certs}}" |
189 |
| - snapshot_name: "ansible_test_FS_snap" |
190 |
| - state: "absent" |
191 |
| -
|
192 |
| - - name: Delete Filesystem Snapshot using ID |
193 |
| - dellemc.unity.filesystem_snapshot: |
194 |
| - unispherehost: "{{unispherehost}}" |
195 |
| - username: "{{username}}" |
196 |
| - password: "{{password}}" |
197 |
| - validate_certs: "{{validate_certs}}" |
198 |
| - snapshot_id: "10008000403" |
199 |
| - state: "absent" |
| 115 | +- name: Create Filesystem Snapshot |
| 116 | + dellemc.unity.filesystem_snapshot: |
| 117 | + unispherehost: "{{unispherehost}}" |
| 118 | + username: "{{username}}" |
| 119 | + password: "{{password}}" |
| 120 | + validate_certs: "{{validate_certs}}" |
| 121 | + snapshot_name: "ansible_test_FS_snap" |
| 122 | + filesystem_name: "ansible_test_FS" |
| 123 | + nas_server_name: "lglad069" |
| 124 | + description: "Created using playbook" |
| 125 | + auto_delete: true |
| 126 | + fs_access_type: "Protocol" |
| 127 | + state: "present" |
| 128 | +
|
| 129 | +- name: Create Filesystem Snapshot with expiry time |
| 130 | + dellemc.unity.filesystem_snapshot: |
| 131 | + unispherehost: "{{unispherehost}}" |
| 132 | + username: "{{username}}" |
| 133 | + password: "{{password}}" |
| 134 | + validate_certs: "{{validate_certs}}" |
| 135 | + snapshot_name: "ansible_test_FS_snap_1" |
| 136 | + filesystem_name: "ansible_test_FS_1" |
| 137 | + nas_server_name: "lglad069" |
| 138 | + description: "Created using playbook" |
| 139 | + expiry_time: "04/15/2021 2:30" |
| 140 | + fs_access_type: "Protocol" |
| 141 | + state: "present" |
| 142 | +
|
| 143 | +- name: Get Filesystem Snapshot Details using Name |
| 144 | + dellemc.unity.filesystem_snapshot: |
| 145 | + unispherehost: "{{unispherehost}}" |
| 146 | + username: "{{username}}" |
| 147 | + password: "{{password}}" |
| 148 | + validate_certs: "{{validate_certs}}" |
| 149 | + snapshot_name: "ansible_test_FS_snap" |
| 150 | + state: "present" |
| 151 | +
|
| 152 | +- name: Get Filesystem Snapshot Details using ID |
| 153 | + dellemc.unity.filesystem_snapshot: |
| 154 | + unispherehost: "{{unispherehost}}" |
| 155 | + username: "{{username}}" |
| 156 | + password: "{{password}}" |
| 157 | + validate_certs: "{{validate_certs}}" |
| 158 | + snapshot_id: "10008000403" |
| 159 | + state: "present" |
| 160 | +
|
| 161 | +- name: Update Filesystem Snapshot attributes |
| 162 | + dellemc.unity.filesystem_snapshot: |
| 163 | + unispherehost: "{{unispherehost}}" |
| 164 | + username: "{{username}}" |
| 165 | + password: "{{password}}" |
| 166 | + validate_certs: "{{validate_certs}}" |
| 167 | + snapshot_name: "ansible_test_FS_snap" |
| 168 | + description: "Description updated" |
| 169 | + auto_delete: false |
| 170 | + expiry_time: "04/15/2021 5:30" |
| 171 | + state: "present" |
| 172 | +
|
| 173 | +- name: Update Filesystem Snapshot attributes using ID |
| 174 | + dellemc.unity.filesystem_snapshot: |
| 175 | + unispherehost: "{{unispherehost}}" |
| 176 | + username: "{{username}}" |
| 177 | + password: "{{password}}" |
| 178 | + validate_certs: "{{validate_certs}}" |
| 179 | + snapshot_id: "10008000403" |
| 180 | + expiry_time: "04/18/2021 8:30" |
| 181 | + state: "present" |
| 182 | +
|
| 183 | +- name: Delete Filesystem Snapshot using Name |
| 184 | + dellemc.unity.filesystem_snapshot: |
| 185 | + unispherehost: "{{unispherehost}}" |
| 186 | + username: "{{username}}" |
| 187 | + password: "{{password}}" |
| 188 | + validate_certs: "{{validate_certs}}" |
| 189 | + snapshot_name: "ansible_test_FS_snap" |
| 190 | + state: "absent" |
| 191 | +
|
| 192 | +- name: Delete Filesystem Snapshot using ID |
| 193 | + dellemc.unity.filesystem_snapshot: |
| 194 | + unispherehost: "{{unispherehost}}" |
| 195 | + username: "{{username}}" |
| 196 | + password: "{{password}}" |
| 197 | + validate_certs: "{{validate_certs}}" |
| 198 | + snapshot_id: "10008000403" |
| 199 | + state: "absent" |
200 | 200 | '''
|
201 | 201 |
|
202 | 202 | RETURN = r'''
|
|
0 commit comments