the problem is you are mixing syntax:
this is valid:
- name: "copy file"
shell: "cp /some/path/to/a/file.txt /home/foobar/some/other/path
creates="/home/foobar/some/other/path/file.txt"
this is also valid:
- name: "copy file"
shell: "cp /some/path/to/a/file.txt /home/foobar/some/other/path"
args:
creates: "/home/foobar/some/other/path/file.txt"
args won't give you an error in the case you showed as you passed a string
to the shell module which allows for arbitrary strings (shell commands). To
the shell that would have appeared as setting a variable inline or an extra
parameter.
----------
Brian Coca
--
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/CACVha7cb%2BngMjONthdztjxzKo9K0M430oHy%3D9jqjsOMUx6pb5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.