We found that if service_state is not set and other options like use_ldaps or encrypt_dc_connection (both added in 9.10) are set to change their state, service_state defaults to stopped (down). Reading the ansible-doc, I would have expected (maybe erroneously?) that service_state would not change if not specified. This happened in tests for both of the options listed above. If servcice_state is set to started while changing the other parameters, it remained started (didn't check stopped).
Is this expected behavior? If so, might be best to change the ansible-doc?
Below are the state before, what is being changed, and state after. You'll note that whenever the option use-ldaps-for-ad-ldap is changed the admin state becomes down (stopped).
status-admin: up, use-ldaps-for-ad-ldap true, no changes , result: status-admin: up, use-ldaps-for-ad-ldap true, CIFS server still up
Summary
We found that if service_state is not set and other options like use_ldaps or encrypt_dc_connection (both added in 9.10) are set to change their state, service_state defaults to stopped (down). Reading the ansible-doc, I would have expected (maybe erroneously?) that service_state would not change if not specified. This happened in tests for both of the options listed above. If servcice_state is set to started while changing the other parameters, it remained started (didn't check stopped).
Is this expected behavior? If so, might be best to change the ansible-doc?
Thanks!
Component Name
netapp.ontap.na_ontap_cifs_server
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Below are the state before, what is being changed, and state after. You'll note that whenever the option use-ldaps-for-ad-ldap is changed the admin state becomes down (stopped).
status-admin: up, use-ldaps-for-ad-ldap true, no changes , result: status-admin: up, use-ldaps-for-ad-ldap true, CIFS server still up
status-admin up, use-ldaps-for-ad-ldap false, change use-ldaps-for-ad-ldap to true : result: status-admin down, use-ldaps-for-ad-ldap true
status-admin up, use-ldaps-for-ad-ldap true, change use-ldaps-for-ad-ldap to false: result: status-admin down, use-ldaps-for-ad-ldap false
status-admin up, use-ldaps-for-ad-ldap false, no change: result: status-admin up, use-ldaps-for-ad-ldap false, CIFS server still up
Expected Results
See steps to reproduce.
Actual Results