# How to update AWS VPC attributes in Ansible playbook 2.8

**URL:** <https://forum.ansible.com/t/how-to-update-aws-vpc-attributes-in-ansible-playbook-2-8/30378>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [May 21, 2019, 5:07am UTC](https://forum.ansible.com/t/how-to-update-aws-vpc-attributes-in-ansible-playbook-2-8/30378 "2019-05-21T05:07:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipak\_Jadhav](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dipak\_Jadhav](https://forum.ansible.com/u/Dipak_Jadhav)\
**Post date:** [May 21, 2019, 5:07am UTC](https://forum.ansible.com/t/how-to-update-aws-vpc-attributes-in-ansible-playbook-2-8/30378/1 "2019-05-21T05:07:28Z")

</div>

Hello,

I want to update my vpc attributes using anisble playbook. I used below code but it is not updating.  
I tries to create new vpc.

- name: Task to update vpc details  
ec2\_vpc\_net:  
dns\_support: yes  
dns\_hostnames: yes  
cidr\_block: “{{ vpc.vpcs[0][‘cidr\_block’]}}”  
name: ‘’  
region: “{{ aws\_region }}”  
profile: “{{ aws\_profile\_name }}”

Can you please help me?
