NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Python Discussions

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

J_M
2,835 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
2,763 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