Random Parsing Problems in EC2?

26 views
Skip to first unread message

Jon Forrest

unread,
Oct 20, 2014, 12:15:11 PM10/20/14
to ansible...@googlegroups.com
This isn't a problem in Ansible (I pretty sure) but I'm curious
whether other people have seen this. (This is with Ansible
1.7.2, but I don't think it matters).

I have a playbook containing a bunch of tasks. No big deal.
I run the playbook on my desktop machine to control a machine
running in AWS. What happens is that various tasks fail with
a message like:

failed: [ec2-XX-XXX-XX-XXX.compute-1.amazonaws.com] => {"failed": true,
"parsed": false}

What's strange is that if I rerun the playbook right away, without
making *any* changes, I get the same error, except in a different
task. *Update* This morning when I came in, I again ran the same
playbook. It finished without any problems!

One such task is that failed is the following:

- name: Enable hstore
| command: psql -d template1 -c 'create extension if not exists hstore;'
sudo: yes
sudo_user: postgres

It doesn't get much simpler than that.

I'm guessing that this is some kind of problem at AWS but
I don't know what it could be. Has anyone else seen this?

Cordially,
Jon Forrest

Michael DeHaan

unread,
Oct 20, 2014, 4:57:14 PM10/20/14
to ansible...@googlegroups.com
When you get a message like this there should be a "msg" below it that says what the error/response was.

Did you get this?





--
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+unsubscribe@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/m23brg%24gpe%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Jon Forrest

unread,
Oct 20, 2014, 6:27:51 PM10/20/14
to ansible...@googlegroups.com
On 10/20/2014 1:57 PM, Michael DeHaan wrote:
> When you get a message like this there should be a "msg" below it that
> says what the error/response was.
>
> Did you get this?

No. I checked all three examples of different tasks failing.
They all said the same thing, which was exactly (copying and
pasting, except the host name)

failed: [ec2-XX-XX-XX-XX.compute-1.amazonaws.com] => {"failed": true,
"parsed": false}

FATAL: all hosts have already failed -- aborting

This is why I don't think it was Ansible that was failing.
I suspect something lower level.

Jon Forrest



Michael DeHaan

unread,
Oct 21, 2014, 11:46:09 PM10/21/14
to ansible...@googlegroups.com
Hmm, odd, at least in recent versions you should get some output back.

No output back would be very unusual.





Jon Forrest



--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages