-
Notifications
You must be signed in to change notification settings - Fork 0
/
25_create_cifslif_pri_svm.yml
46 lines (42 loc) · 1.35 KB
/
25_create_cifslif_pri_svm.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
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env ansible-playbook
################################################################################
#
# Title: 25_create_cifslif_pri_svm.yml
# Date: 2020-06-20
# Description: Create CIFS interface on primary SVM for NAS
# with Ansible modules
#
# Modules: na_ontap_interface
#
# URLs: http://docs.netapp.com/ontap-9/index.jsp
# https://galaxy.ansible.com/netapp/ontap
#
# Built-in help:
# ansible-doc netapp.ontap.na_ontap_interface
#
################################################################################
- hosts: localhost
gather_facts: false
vars:
input: &input
hostname: "{{ PRI_CLU }}"
username: "{{ PRI_CLU_USER }}"
password: "{{ PRI_CLU_PASS }}"
https: true
validate_certs: false
use_rest: Always
vars_files:
- global_nas.vars
collections:
- netapp.ontap
tasks:
- name: Create CIFS interface on primary SVM
na_ontap_interface:
state: present
interface_name: "{{ PRI_SVM }}_cifs_01"
vserver: "{{ PRI_SVM }}"
address: "{{ PRI_SVM_CIFS_IP }}"
netmask: "{{ PRI_SVM_CIFS_NETMASK }}"
home_node: "{{ PRI_CLU_NODE1 }}"
home_port: "{{ PRI_DATA_PORT }}"
<<: *input