On Monday, 26 November 2018 17:25:02 CET [email protected] wrote:
> I tried with async but I am getting the below error. Could you please help.
> 
> Playbook.yml
> 
> ---
> - hosts: all
>   tasks:
>     - name: Copying files
>       copy: src={{ item.src }} dest={{ item.dest }}
>       with_items:
>         - { src: '/tmp/abc.war', dest: '/tmp/abc' }
>         - { src: '/tmp/def.war', dest: '/tmp/def' }
>         - { src: '/tmp/xyz.war', dest: '/tmp/xyz' }
>       async: 60
>       poll: 0
> 
> Error:
> 
> failed: (item={u'dest': u'/tmp/hr', u'src': u'/tmp/abc/abc.war'}) => 
> {"item": {"dest": "/tmp/abc", "src": "/tmp/abc/abc.war"}, "msg": "async is 
> not supported for this task."}

It seams that the copy module doesn't support async so you're out of luck.
If you have passwordless login to you host, you could use command module with 
async.


-- 
Kai Stian Olstad


-- 
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/4960638.8bxdbPdW14%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to