-
Notifications
You must be signed in to change notification settings - Fork 0
/
24_create_cifs_pri_svm.yml
44 lines (41 loc) · 1.27 KB
/
24_create_cifs_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
#!/usr/bin/env ansible-playbook
################################################################################
#
# Title: 24_create_cifs_pri_svm.yml
# Date: 2020-06-20
# Description: Create CIFS server on primary SVM for NAS
# with Ansible modules
#
# Modules: na_ontap_cifs_server
#
# URLs: http://docs.netapp.com/ontap-9/index.jsp
# https://galaxy.ansible.com/netapp/ontap
#
# Built-in help:
# ansible-doc netapp.ontap.na_ontap_cifs_server
#
################################################################################
- 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 server on primary SVM
na_ontap_cifs_server:
state: present
name: "{{ PRI_SVM }}"
vserver: "{{ PRI_SVM }}"
domain: "{{ PRI_AD_DOMAIN }}"
admin_user_name: "{{ PRI_AD_USER }}"
admin_password: "{{ PRI_AD_PASS }}"
<<: *input