I had playbook that already worked with Rackspace cloud and recently we decided to migrate to AWS.
After changing rax module operations with ec2 counterparts, everything looked good at that moment. I am using the official Debian 7.6 image.
Here’s the weird thing, I can create the infrastructure needed and can SSH into the machine after that.
But for some reason, Ansible fails after few actions spanning two roles and gives me this error:
{"failed": true, "parsed": false}
“-vvvv” flag didn’t provide any useful information too and logs at the server indicates that the client is disconnecting for no reason.
I disabled the roles that were failing but later discovered that regardless of the actions, it always fails after a few actions at the same action. What is more weird is that sometimes it fails after performing 2 more actions.
Sorry if this is a duplicate but I couldn’t find any solutions for this strange behaviour and logs are not helpful. Any advice?