On Monday, 26 November 2018 17:25:02 CET
anushake...@gmail.com 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."}
If you have passwordless login to you host, you could use command module with async.