An Ansible playbook for creating a Public subnet and Private subnet with NAT gateway. Currently Ansible is working on the module ‘ec2_vpc_nat_gateway’ and it is not production ready. So I used a bash script along with the Ansible play to create the private subnet with NAT gateway. You can find the github repo from here.