summaryrefslogtreecommitdiffstats
path: root/ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml
blob: 83d0d7b32cfedb45ffaa8dac82380419b119e16b (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
- name: NFS Server Operations
  hosts: localhost
  connection: local
  gather_facts: false
  vars:
    unispherehost: '10.*.*.*'
    validate_certs: false
    username: 'user'
    password: '**'

  tasks:
    - name: Create NFS server with kdctype as Windows
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        host_name: "dummy_nas23"
        is_secure_enabled: true
        kerberos_domain_controller_type: "WINDOWS"
        kerberos_domain_controller_username: "user"
        kerberos_domain_controller_password: "**"
        is_extended_credentials_enabled: true
        nfs_v4_enabled: true
        state: "present"

    - name: Create NFS server with kdctype as Windows - Idempotency
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        host_name: "dummy_nas23"
        is_secure_enabled: true
        kerberos_domain_controller_type: "WINDOWS"
        kerberos_domain_controller_username: "user"
        kerberos_domain_controller_password: "**"
        is_extended_credentials_enabled: true
        nfs_v4_enabled: true
        state: "present"

    - name: Get NFS server details
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        state: "present"

    - name: Delete NFS server
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        kerberos_domain_controller_username: "user"
        kerberos_domain_controller_password: "**"
        remove_spn_from_kerberos: true
        state: "absent"

    - name: Create NFS server with kdctype as Unix
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        host_name: "dummy_nas23"
        is_secure_enabled: true
        kerberos_domain_controller_type: "UNIX"
        is_extended_credentials_enabled: true
        nfs_v4_enabled: true
        state: "present"

    - name: Create NFS server with kdctype as Unix - Idempotency
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        host_name: "dummy_nas23"
        is_secure_enabled: true
        kerberos_domain_controller_type: "UNIX"
        is_extended_credentials_enabled: true
        nfs_v4_enabled: true
        state: "present"

    - name: Delete NFS server
      dellemc.unity.nfsserver:
        unispherehost: "{{ unispherehost }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: "{{ validate_certs }}"
        nas_server_name: "dummy_nas"
        kerberos_domain_controller_username: "user"
        kerberos_domain_controller_password: "**"
        remove_spn_from_kerberos: true
        state: "absent"