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_iis_webapppool improvements don't set attributes correctly #22805
Comments
Unfortunately you can only set attributes of the webapppool itself using this module. If you need to set processModel attributes, I don't think there is a module for that (although pull requests always welcomed). You can, however, set processModel settings as described here: https://groups.google.com/forum/#!topic/ansible-project/L_FNHoh0nMM |
Yes, but you'll note that 'attributes' in the response is empty (info.attributes has something however). Referring to this comment in the original PR, you can see that their output and my output different. It seems one should be able to at the very least set the 'normal' attributes (for example, enable32BitAppOnWin64), otherwise what's the point of this module? |
@jhawkesworth It appears that the following line is failing:
If I add a Additionally, if I add the $params to $result, I can see that the attributes passed in the playbook do show up in the module, it just doesn't seem to be parsing them for some reason?
|
If I uncomment the If statement checking for What's wrong with the If statement? A look on Stack Overflow suggests that Get-Member isn't the correct way to check for the existence of a property... however, I changed it and that didn't work either. Is there a way to inspect the rewritten powershell script as it exists on the target host? |
Found it. Did the module API change recently? Switching Get-Member to Get-AnsibleParam does the trick. |
re-opening following further info from @virtuald |
I think it is unfortunate that an awkward syntax was chosen for |
@dagwieers yeah, it feels really weird to me as well. In theory it could be changed to take either, and deprecate string attributes? Or just use a new name instead of changing the attributes parameter. |
Yeah agree it was awkward but I'd suggest just getting it functioning 'as is' and leaving enhancing it for a separate PR which can be tackled during 2.4 development (lets try and get bug fix cherry picked to 2.3 though) |
If this doesn't get cherry picked to 2.3 then you might as well delete this module from 2.3, as it won't do much of anything useful without it. :) |
ISSUE TYPE
COMPONENT NAME
win_iis_webapppool
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Control host: Ubuntu 16.04
Target host: Windows Server 2012
SUMMARY
Attributes aren't set correctly, should have been fixed in #20680 but wasn't. Used test playbook from @deekayen as mentioned in the PR.
STEPS TO REPRODUCE
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: