New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win_share: tweaks after the caching mode changes #22763
Conversation
@daBONDi I hope you don't mind but you and @nitzmahone were too quick for me with the issue I raised yesterday :). There are some things I changed around this which is mostly documentation stuff but the major areas is to change the default caching mode to Manual and removing the Unknown option as that doesn't seem to be a valid option. I've double checked this by creating a new share manually with powershell using
|
Default Value: Manual Option Unkown: For me ok if i count something :-) |
Thanks for the info, I didn't have a closer look in the technet documents and only looked at what it listed and not under the accepted values list. This got me interested and looking at the WMI class MSFT_SmbShare I can see Unknown as an option here. Still doesn't say what it means and any attempt at setting it to unknown fails, I've tried setting it through the *-SmbShare commands but I get the following errors.
I then try to manipulate it through WMI itself but I get an even more unhelpful error below
Ultimately I'll put the Unknown option back in but my curiosity is definitely high as to what the option does. As for the the default action, while the technet docs specify Test Playbook
Test Output
|
Hey @nitzmahone any chance with merging this into 2.3 before the next RC is released? |
* win_share: tweaks after the caching mode changes * Re-added the Unknown option back in (cherry picked from commit 89b78cb)
merged to devel and cherry-picked to stable-2.3 for 2.3.0RC2 |
SUMMARY
Some minor tweaks around win_share after some changes before 2.3 release. These changes are
ISSUE TYPE
COMPONENT NAME
win_share
ANSIBLE VERSION
ADDITIONAL INFORMATION
Hoping to get this through before 2.3 as I believe this is a bug as now using this module changes the caching mode of a new share when not setting the mode to None when in fact the previous module before the changes set it to Manual