regexp in assemble module with remote_src=false

230 views
Skip to first unread message

Marco Corte

unread,
Mar 10, 2014, 5:36:48 AM3/10/14
to ansible...@googlegroups.com
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?

James Cammarata

unread,
Mar 10, 2014, 11:30:06 PM3/10/14
to ansible...@googlegroups.com
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!


--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6c4dbae1-d614-4724-a67f-b35a4eaccf7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marco Corte

unread,
Mar 11, 2014, 5:24:36 AM3/11/14
to ansible...@googlegroups.com, jcamm...@ansible.com
I opened the issue #6383 https://github.com/ansible/ansible/issues/6383

It is not so well written, but it is my very first one: please apologize :-)
Reply all
Reply to author
Forward
0 new messages