Commit graph

324 commits

Author SHA1 Message Date
Corwin Brown
c4b4c412a2 Switching to Get-AnsibleParam
Switching to Win_Unzip
2015-10-30 09:57:53 -05:00
Trond Hindenes
f6ea32b9ec Various improvements to win_package 2015-10-28 21:52:32 +01:00
Corwin Brown
4bc04cd997 bug fixes 2015-10-28 11:55:19 -05:00
nitzmahone
8fa10acddf Strict-Mode fixes
Changes to missing member handling to support running top-level script under Strict-Mode v2 (as Ansible 2.0.0 does now)
2015-10-27 16:08:00 -07:00
Corwin Brown
7c12ed8af0 Using Get-AnsibleParam
conflict

typo
2015-10-27 15:08:03 -05:00
James Cammarata
949b124e05 Merge pull request #1114 from blakfeld/fix_win_iis_webapppool
Made win_iis_webapppool Strict Compliant
2015-10-27 14:33:20 -04:00
=
4f15e1e7e7 First pass at adding win_regmerge module for handling bulk registry changes 2015-10-27 06:13:42 +00:00
Hans-Joachim Kliemeck
45249fb042 only call set-acl if necessary 2015-10-26 10:20:14 +01:00
Adam Keech
56e7d80479 Fixing Some Issues with out Parameters are passed around. Also some refactoring. 2015-10-22 17:41:18 -04:00
Adam Keech
9782f08a7d Merge remote-tracking branch 'h0nlg/devel_win_nssm' into devel_win_nssm 2015-10-22 17:37:57 -04:00
Hans-Joachim Kliemeck
b4f80a777f fixed bugs with flipped protection attribute 2015-10-22 14:22:50 +02:00
Hans-Joachim Kliemeck
b03c7ebfa1 introduced state to differentiate between enabled/disabled inheritance. renamed copy to reorganize, since the meaning for inheritance=enabled is different 2015-10-21 22:43:42 +02:00
Hans-Joachim Kliemeck
8de49a5dea suggestions by @marcind 2015-10-21 21:20:44 +02:00
Hans-Joachim Kliemeck
3a5d4576c6 as suggested by @marcind, convert to boolean 2015-10-21 21:11:51 +02:00
Hans-Joachim Kliemeck
adc78eaf87 fixed documentation 2015-10-21 20:06:26 +02:00
Hans-Joachim Kliemeck
d3f83ee9a7 added start mode feature 2015-10-21 18:16:49 +02:00
Hans-Joachim Kliemeck
e7fd5dcde0 strict variables fix 2015-10-21 17:52:59 +02:00
Hans-Joachim Kliemeck
461a479cbd added dependency and user settings 2015-10-21 17:52:48 +02:00
Brian Coca
679e9fc7b4 Merge pull request #1100 from bgeihsgt/win_iis_absent_fix
Fix #1099: Only populate site result when it is there
2015-10-19 11:29:15 -04:00
Henrik Wallström
c893f30b2a Fix: support for virtual directories in applications 2015-10-19 16:29:43 +02:00
Henrik Wallström
918f3fa329 Adds examples for win_iis_virtualdirectory 2015-10-19 16:04:17 +02:00
Hans-Joachim Kliemeck
7978afe1fd fixed documentation 2015-10-18 17:26:12 +02:00
Hans-Joachim Kliemeck
95862793d0 added module to disable acl inheritance 2015-10-18 17:24:27 +02:00
Hans-Joachim Kliemeck
a0a51ffd66 added credits, fixed documentation 2015-10-18 17:06:28 +02:00
Hans-Joachim Kliemeck
75163ac5fe made win_acl strict compliant 2015-10-18 16:58:13 +02:00
Hans-Joachim Kliemeck
21c564848d added userprincipal support 2015-10-18 16:58:04 +02:00
Hans-Joachim Kliemeck
cda7e96fcc added userprincipal support 2015-10-17 23:10:56 +02:00
Hans-Joachim Kliemeck
7c8e3f4da1 added separate module to change owner, since win_acl is ACL only and should not be more complex 2015-10-17 17:07:39 +02:00
Toshio Kuratomi
632de528a0 Fix win_acl docs build 2015-10-16 11:11:42 -07:00
Corwin Brown
ea430466a8 Made win_iis_webapppool Strict Compliant 2015-10-15 18:02:21 -05:00
Hans-Joachim Kliemeck
71dc569566 fixed problem with sid/windows 2008 by using SID. fixed problems related to default accounts like BUILTIN\SYSTEM 2015-10-15 12:01:11 +02:00
Brian Coca
05f53f2b95 Merge pull request #200 from schwartzmx/module/win_acl
win_acl Module

talked to @cchurch, merging this for now, need to open ticket to address the 2008 issue
2015-10-14 15:44:47 -04:00
Brian Geihsler
c6a934d57b Fix #1107: Prepend registry type on key path 2015-10-14 11:04:38 -07:00
Brian Geihsler
d0e3a315ac Fix #1107: Use Get-Attr in win_regedit 2015-10-14 11:04:07 -07:00
Brian Geihsler
1e37276c97 Fix #1101: win_webpicmd strict mode fixes 2015-10-14 00:39:59 -07:00
Brian Geihsler
0e64863429 Fix #1099: Only populate site result when it is there 2015-10-14 00:33:28 -07:00
Corwin Brown
c35c37258f Adding win_uri module 2015-10-13 09:47:56 -05:00
Brian Coca
561d768f44 Merge pull request #1076 from trondhindenes/win_package_bugfix
turned off strict msi code checking
2015-10-12 09:27:54 -04:00
Brian Coca
a155f7ee34 Merge pull request #1071 from nlandais/devel
Adding fix to get around bug found with the New-Website command when…
2015-10-12 09:27:30 -04:00
Brian Coca
cc69ac1513 Merge pull request #1064 from dreamcat4/feature/win_fw-hotfixes
hotfixes: module windows/win_firewall_rules
2015-10-12 09:27:18 -04:00
Corwin Brown
f8e1600444 Made Powershell Strict Complient 2015-10-09 17:49:34 -05:00
Trond Hindenes
b9d842ecd6 turned out strict msi code checking 2015-10-09 20:28:54 +02:00
Nicolas Landais
d1dcf8e06b Adding fix to get around bug found with the New-Webstire command when running playbook on a vanilla machine. 2015-10-08 12:00:12 -04:00
=
576b5e2fc3 Document module limitations to resolve https://github.com/ansible/ansible-modules-extras/issues/908 2015-10-07 05:25:28 +01:00
Dreamcat4
ece9c2b43a fix: Add 'enable:' flag for enabling existing rules which are disabled by default.
This is a very much needed flag. To turn on/off existing firewall rules. And like the recent fix of the 'Profile' key, the netsh cmd prints 'Enabled' in the textual output. (at least on win10 it does). So again a similar small code added for the necessary exception handling when the difference check happens.

Please merge / push upstream like the other fixes. Many thanks. This is the last fix I have put together for this patch set. So I will raise my PR now.

But if you want to fix more bugs, it seems there may be others. In terms of the control code. Sometimes it will delete a rule under 'force' condition (when found difference) - but instead it is supposed to just modify the existing rule. Some weird behaviour regarding that. The other problem is that ansible does not return the error text printed by 'netsh' cmd verbatim... but it should as that makes debugging these errors a *lot* easier.
2015-10-06 14:03:27 +01:00
Dreamcat4
dcaa794949 fix: update documentation with new module name "win_firewall_rule" 2015-10-06 10:47:27 +01:00
Dreamcat4
469d22df97 fix: The names of firewall profiles are different on win10 & win2008r2
Hi again. This commit removes a small portion of your script's own internal error checking. In specific: for the value of the profile: key. This is essential to avoid errors on other verisons of the windows operating system which are not win2008r2 (your version).

For example: on win10 (and most likely win8x too), the names of the profiles don't include the values 'current' and 'all'. But instead the values are 'Public' 'Private' 'Domain' and 'Any. But in addition, there are also certain combinatorial values, such as profile=Public,Private etc. Which is too many to error check yourself.

Yet removing the error checking here should not cause any ill effects however: since the netsh advfirewall ... cmds themselves to add / remove / modify actually to their own error checking of the profile=value. So when the cmd is run, it will error out itself with an appropriate / informative error msg. No harm done.

Therefore please remove the highlighed portions from your own script. It is essential for interoperability with win10 and win8x. Many thanks.
2015-10-05 21:53:11 +01:00
Dreamcat4
6c5a4a14ef fix: win10 - Add exception handling for 'Profiles:' textual output key name mismatch.
In win10 (and pribably win8x also):

The output of 'show rule' key includes the line "Profiles:<TAB>Public,Private".
Yet your script expects the key name printed out to be "Profile:<TAB>value".

This commit added the necessary exception handling to avoid flagging 'different=true' under the false circumstance. The key name to SET a firewall rule is still "profile=" and not "profiles=".

There is coming up another commit to fix the value handling for win10/win8. Which is another (different) error with the profile: key.
2015-10-05 21:36:24 +01:00
Dreamcat4
2654789af7 fix: fw rule names must always be quoted, to permit spaces ' ' and brackets '()'
Without this fix, the 'netsh' command gets name=Firewall Rule Name instead of name="Firewall Rule Name". Thus causing all sorts of havoc. Basic shell quoting rules seems to apply to Windows Powershell too. This is very much needed as many of windows 10's default firewall rules contain spaces and brackets () characters.
2015-10-05 21:10:59 +01:00
Brian Coca
ebbd7748b1 doc formatting fixes 2015-10-05 11:57:38 -04:00