# Weird idempotency issue with 2.0.2.0 on ec2\_vpc module

**URL:** <https://forum.ansible.com/t/weird-idempotency-issue-with-2-0-2-0-on-ec2-vpc-module/21267>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [April 25, 2016, 7:16pm UTC](https://forum.ansible.com/t/weird-idempotency-issue-with-2-0-2-0-on-ec2-vpc-module/21267 "2016-04-25T19:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_DJOMEDA](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Post date:** [April 25, 2016, 7:16pm UTC](https://forum.ansible.com/t/weird-idempotency-issue-with-2-0-2-0-on-ec2-vpc-module/21267/1 "2016-04-25T19:16:51Z")

</div>

Hello Guys,

I just upgraded and quickly got caught up with a weird issue with the ec2\_vpc. It’s a existing playbook and worked fine. The weird part is that the playbook works fine the first type but give this error the subsequent times:

"An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: ‘NoneType’ object has no attribute ‘items’  
fatal: [127.0.0.1]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Traceback (most recent call last):\n File "/home/joseph/.ansible/tmp/ansible-tmp-1461608488.65-217479095820231/ec2\_vpc", line 2944, in \n main()\n File "/home/joseph/.ansible/tmp/ansible-tmp-1461608488.65-217479095820231/ec2\_vpc", line 731, in main\n (vpc\_dict, new\_vpc\_id, subnets\_changed, igw\_id, changed) = create\_vpc(module, vpc\_conn)\n File "/home/joseph/.ansible/tmp/ansible-tmp-1461608488.65-217479095820231/ec2\_vpc", line 416, in create\_vpc\n subnet\_tags\_extra = (set(csn.tags.items()).issubset(set(new\_subnet\_tags.items())))\nAttributeError: ‘NoneType’ object has no attribute ‘items’\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “parsed”: false}  
"

If I delete the vpc and run the script again it works again but for the first type only. The command run is with a awscli profile:

AWS\_PROFILE=test ansible-playbook aws\_structure\_playbook.yml on ubuntu trustry

the content of the playbook is on [pastbin.com](http://pastebin.com/EfkFkyP8)

This affects me. is there a way I can go back to the previous 2.0 version? could not see any in the apt-cache for the ppa.

Thanks
