[ansible-project] Re: The async task did not return valid JSON: Extra data ...

2015-12-16 Thread Nuriel Shem-Tov
I just noticed that this works on ansible 1.9.4 (ubuntu), but not on: git 
source ansible ansible 2.1.0 (devel fcc9258b74) last updated 2015/12/16 
10:47:18 (GMT +000)

On Friday, December 11, 2015 at 3:10:19 PM UTC+1, Nuriel Shem-Tov wrote:
>
> Hi!
>
> I am running the following playbook:
>
> ---
> - hosts: all
>   remote_user: root
>   tasks:
>
>  - name: simulate long running op (15 sec), wait for up to 45 sec, poll 
> every 5 sec
> command: /bin/sleep 15
> async: 45
> poll: 5
>
>
> And it fails:
>
>  
> FAILED! => {"changed": false, "failed": true, "msg": "The async task did 
> not return valid JSON: Extra data: line 2 column 1 - line 5 column 1 (char 
> 115 - 244)"}
>
> I am not sure what is going wrong, the playbook example is from 
> http://docs.ansible.com/ansible/playbooks_async.html
>
> Ansible version:
> ansible 2.1.0 (devel bd0f9a4afc) last updated 2015/12/11 11:05:40 (GMT +
> 000)
>   lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/
> 11/26 10:11:24 (GMT +000)
>   lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015
> /11/26 10:11:27 (GMT +000)
>   config file = /home/nuriel.shemtov/.ansible.cfg
>   configured module search path = Default w/o overrides
>
>
> On Ubuntu
> 3.13.0-62-generic #102~precise1-Ubuntu SMP Wed Aug 12 14:09:54 UTC 2015 
> x86_64 x86_64 x86_64 GNU/Linux
>
> Remote host running Centos 5.5 ...
>
> Any help is much appreciated!
> 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-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/08914b04-61f6-4e37-afb7-55954320da0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] The async task did not return valid JSON: Extra data ...

2015-12-11 Thread Nuriel Shem-Tov
Hi!

I am running the following playbook:

---
- hosts: all
  remote_user: root
  tasks:

 - name: simulate long running op (15 sec), wait for up to 45 sec, poll 
every 5 sec
command: /bin/sleep 15
async: 45
poll: 5


And it fails:

 
FAILED! => {"changed": false, "failed": true, "msg": "The async task did 
not return valid JSON: Extra data: line 2 column 1 - line 5 column 1 (char 
115 - 244)"}

I am not sure what is going wrong, the playbook example is from 
http://docs.ansible.com/ansible/playbooks_async.html

Ansible version:
ansible 2.1.0 (devel bd0f9a4afc) last updated 2015/12/11 11:05:40 (GMT +000)
  lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/11/
26 10:11:24 (GMT +000)
  lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/
11/26 10:11:27 (GMT +000)
  config file = /home/nuriel.shemtov/.ansible.cfg
  configured module search path = Default w/o overrides


On Ubuntu
3.13.0-62-generic #102~precise1-Ubuntu SMP Wed Aug 12 14:09:54 UTC 2015 
x86_64 x86_64 x86_64 GNU/Linux

Remote host running Centos 5.5 ...

Any help is much appreciated!
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-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/c4b39d6c-c638-40df-8abd-8dce106321a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.