-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvolume.yml
33 lines (33 loc) · 894 Bytes
/
volume.yml
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
- hosts: localhost
name: ONTAP
gather_facts: false
vars:
hostname: "172.32.0.152"
volname: ansibleVolume
vserver: ansible_vserver
aggrname:
size: 10
aggr: aggr1
e_policy:
qos_policy:
export_policy:
state: present
tasks:
- name: "{{ tower_job_template_name }}"
netapp.ontap.na_ontap_volume:
state: "{{ state }}"
name: "{{ volname }}"
aggregate_name: "{{ aggrname }}"
size: "{{ size }}"
size_unit: gb
policy: "{{ export_policy }}"
junction_path: "{{ '' if not export_policy else '/volname' }}"
space_guarantee: "none"
vserver: "{{ vserver }}"
hostname: "{{ hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
https: true
validate_certs: false
efficiency_policy: "{{ e_policy }}"
qos_policy_group: "{{ qos_policy }}"