This repository was archived by the owner on Nov 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4-netapp-clone.yml
More file actions
39 lines (36 loc) · 1.56 KB
/
Copy path4-netapp-clone.yml
File metadata and controls
39 lines (36 loc) · 1.56 KB
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
################################################################################
## ##
## Ansible Tower Playbook ##
## Name: NetApp-Clone.yml ##
## Created by: Matthew Kimler and Robert Nelson ##
## Website: www.iarchive.com ##
## ##
################################################################################
---
- hosts: localhost
gather_facts: no
tasks:
- name: Create Demo Clone FlexClone from SnapMirror
na_ontap_volume_clone:
state: present
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
hostname: "{{ netapp_hostname }}"
vserver: "svm_RHSAnsible"
parent_volume: "RHSAnsible_copy"
volume: "DemoClone"
parent_snapshot: "{{ snapshot_name }}"
- name: Set Export Policy
na_ontap_volume:
state: present
name: "DemoClone"
policy: "export-svm_RHSAnsible-RHSNFS"
vserver: "svm_RHSAnsible"
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
- hosts: netapp
gather_facts: no
tasks:
- name: Set Junction Path
raw: volume mount -vserver svm_RHSAnsible -volume DemoClone -junction-path /DemoClone