We changed raw in 2.2 to return changed: true for consistency with the 
other non-idempotent modules (shell/script/command/etc). You can override 
with changed_when if you're not on 2.2 yet.

On Thursday, November 17, 2016 at 11:18:04 AM UTC-8, Justin Dugan wrote:
>
> Hi all,
>
> I am using the following task in a playbook:
>
> - name: Install .Net 4.6.2
>   raw: c:/temp/NDP462-KB3151800-x86-x64-AllOS-ENU.exe /q /norestart
>   when: raw_output.stdout | version_compare('394806', '<')
>   notify:
>     - reboot
>
> Everything works with the exception of the "notify". I'm assuming this is 
> because the "changed" value returned by the raw module is false. Is there a 
> way to force "changed" to be true?
>
> Thanks,
>
> Justin
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c1709025-3d23-4a81-a3f2-ef3024d36617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to