This is a bug, the action_plugin version (which runs locally) doesn't
accept the regexp parameter. Could you please open a github issue for this?

Thanks!


On Mon, Mar 10, 2014 at 5:36 AM, Marco Corte <[email protected]> wrote:

> If I run this playbook against, say, the host pgli10-nm, it exits with an
> error
>
>
> ---
> - hosts:
>     all
>   tasks:
>   - assemble:
>       src=fragments/prova
>       dest=/tmp/prova
>       regexp='({{ ansible_hostname }}|tutti)'
>       mode=644
>       remote_src=False
>
>
>
>
> failed: [pgli10-nm] => {"failed": true}
> msg: unsupported parameter for module: regexp
>
> If I copy all files in the fragments/prova directory to the remote machine
> and I assemble them there (i.e. adjusting the paths and with the default
> remote_src=True), the regexp works as expected, assembling the file
> properly.
>
> I am not sure that it is a bug: is anyone experiencing the same behaviour?
>
> --
> 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/6c4dbae1-d614-4724-a67f-b35a4eaccf7a%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/6c4dbae1-d614-4724-a67f-b35a4eaccf7a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAFg%2Bn8RH1tWTHpmNDKOG40rHsLY5iGVF_3Fi4YaA5x2hP%2BPPkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to