# Ansible - elasticache (ansible 1.9.2)

**URL:** <https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [July 13, 2015, 6:08pm UTC](https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746 "2015-07-13T18:08:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Federico\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Post date:** [July 13, 2015, 6:08pm UTC](https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746/1 "2015-07-13T18:08:58Z")

</div>

Hi folks,

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

if I play without cache\_subnet\_group i got:

```auto
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

```

```auto

```

---

<div class="post-metadata">

**Author:** ![Federico\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Post date:** [July 13, 2015, 7:43pm UTC](https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746/2 "2015-07-13T19:43:54Z")

</div>

[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](https://github.com/ansible/ansible-modules-core/blob/devel/cloud/amazon/elasticache.py)

and it’s working right now.!

Thanks,  
Fede
