I use these modules (win_copy, win_template) locally and I had to patch
win_copy.ps1 for the modules to properly handle changes in files/templates.
Here is the patch:
--- win_copy.ps1.orig 2014-12-11 13:50:17.000000000 -0800
+++ win_copy.ps1 2015-05-14 16:56:09.683278480 -0700
@@ -52,17 +52,17 @@
If (Test-Path $dest)
{
- $dest_checksum = Get-FileChecksum ($dest);
- $src_checksum = Get-FileChecksum ($src);
+ [string] $dest_checksum = Get-FileChecksum ($dest);
+ [string] $src_checksum = Get-FileChecksum ($src);
- If (! $src_checksum.CompareTo($dest_checksum))
+ If ( $src_checksum.CompareTo($dest_checksum))
{
# New-Item -Force creates subdirs for recursive copies
New-Item -Force $dest -Type file;
Copy-Item -Path $src -Destination $dest -Force;
}
- $dest_checksum = Get-FileChecksum ($dest);
- If ( $src_checksum.CompareTo($dest_checksum))
+ [string] $dest_checksum = Get-FileChecksum ($dest);
+ If (! $src_checksum.CompareTo($dest_checksum))
{
$result.changed = $TRUE;
}
On Friday, May 22, 2015 at 1:04:19 PM UTC-7, Trond Hindenes wrote:
>
> I'm seeing a bunch of issues with the win_copy version in the devel
> branch. If this is the one planned for inclusion in 1.9.2 rc2 I'd say it's
> not quite ready:
>
> https://github.com/ansible/ansible-modules-core/issues/1404
>
> On Friday, May 22, 2015 at 7:45:52 PM UTC+2, James Cammarata wrote:
>
>> I will be releasing a rc2 for this today, which will incorporate this PR
>> (which was reverted):
>> https://github.com/ansible/ansible-modules-core/pull/384
>>
>> James Cammarata
>> Director, Ansible Core Engineering
>> github: jimi-c
>>
>> On Fri, May 22, 2015 at 11:44 AM, Philippe Eveque <[email protected]>
>> wrote:
>>
>>> same on the playbooks/module/plugin we have here
>>>
>>> +1
>>>
>>>
>>> 2015-05-22 15:46 GMT+02:00 René Moser <[email protected]>:
>>>
>>>> all good, didn't see any issues.
>>>>
>>>> +1
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ansible Development" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1e4dc54c-be28-4047-a036-a30c79516439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.