Ansible - elasticache (ansible 1.9.2)

Hi folks,

I’m having a problem dealing with aws elasticache on VPC

if I play without cache_subnet_group i got:

failed: [127.0.0.1] => {"failed": true}
msg: Subnet group [default] belongs to a different VPC [vpc-405ac825] than [vpc-9d6ffdf8]

FATAL: all hosts have already failed -- aborting

[SOLVED]

Finally I got the solution in another thread…

Basically I’ve replaced elasticache.py with this: https://github.com/ansible/ansible-modules-core/blob/devel/cloud/amazon/elasticache.py

and it’s working right now.!

Thanks,
Fede