diff options
Diffstat (limited to 'ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml')
-rw-r--r-- | ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml b/ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml new file mode 100644 index 000000000..83d0d7b32 --- /dev/null +++ b/ansible_collections/dellemc/unity/playbooks/modules/nfsserver.yml @@ -0,0 +1,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" |