Perfect, that brought me a step further! Still having a problem (check back 
on fire-and-forget task doesn't do anything when the task is done). But 
anyways thank you very much Marko!

Regards, Tim

Am Mittwoch, 25. Januar 2017 16:21:42 UTC+1 schrieb Tim:
>
>
> I try to run the following tasks like shown below.
>  
>  - name: add test host (fire and forget)
>     vsphere_guest:
>       vcenter_hostname: srv-vcenter01.ansible.local
>       username: administrator@vsphere.ansible.local
>       password: P@ssw0rd
>       guest: "{{item.hostname}}"
>       from_template: yes
>       template_src: temp-win-2k12-r2
>       esxi:
>         datacenter: Ansible-DC
>         hostname: srv-esx02.ansible.local
>       vm_extra_config:
>         folder: VMs
>     with_items: "{{ serverlist }}"
>     async: 1800
>     poll: 0
>     register: sleeper1
>
>   - name: check fire and forget
>     async_status:
>       jid: "{{ sleeper1.ansible_job_id }}"
>     register: job_result
>     until: job_result.finished
>     retries: 30
>
> I want to start the set of async tasks and then check their status inside 
> "until" loop.
> During the checking ansible fails with error "'dict object' has no 
> attribute 'ansible_job_id'"
> Nearly same problem like here 
> <https://github.com/ansible/ansible/issues/12254>
>
>
> Has anyone an idea?
>
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9eec5aa3-0565-43e9-88e7-5bc5e0804863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to