Python Discussions

na_ontap_cifs_server.py - Module seems to Stop CIFS Server as Default

J_M
1,294 Views

When running an Ansible job that only sets "use_ldaps". When the Ansible job is run it does enable use_ldaps, but in the process stops the CIFS server. This is not expected as the default for service_stat is null. This should not be changed.

 

Module: na_ontap_cifs_server.py

 

use_ldaps:
    description:
      - Specifies whether or not to use use LDAPS for secure Active Directory LDAP connections.
      - Only supported with REST and requires ontap version 9.10.1 or later. Use na_ontap_vserver_cifs_security with ZAPI.
    type: bool
    version_added: 21.20.0
 

- service_state
CIFS Server Administrative Status.
(Choices: stopped, started)[Default: (null)]
type: str 

1 REPLY 1

Ontapforrum
1,222 Views

Could you tell us - Where do you see 'null' value ? I am looking at the page and it does not show 'null' as default. May be it its defaulting to 'stopped'. Could you try 'service_state:started'

https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_cifs_server_module.html#examples

Public