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?