Answers: <p>map_public parameter set to true in the second link should do this.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-08-18T14:04:53.810Z
Answers: 2019-08-18T14:04:53.810Z
Answers: pebam
Body: <p>Since upgrading to these 2 Ansible modules I am having difficulties in setting the subnets to have default public IP when new instances are created by autoscaling?</p>
  
  <p>I can't find any setting on the documentation for this, how do I achieve this?</p>
  
  <p><a href="https://docs.ansible.com/ansible/latest/modules/ec2_vpc_net_module.html" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/modules/ec2_vpc_net_module.html</a></p>
  
  <p><a href="https://docs.ansible.com/ansible/latest/modules/ec2_vpc_subnet_module.html" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/modules/ec2_vpc_subnet_module.html</a></p>
  
Tags: <ansible><amazon-ec2><aws-vpc>
Title: Ansible ec2_vpc_net and ec2_vpc_subnet - where to set subnet default public ip
UserDisplayName: jdog
ThreadText: # Ansible ec2_vpc_net and ec2_vpc_subnet - where to set subnet default public ip
  
  (Asked by: username_0 on 2019-08-16)
  
  Since upgrading to these 2 Ansible modules I am having difficulties in setting the subnets to have default public IP when new instances are created by autoscaling?
  
  I can't find any setting on the documentation for this, how do I achieve this?
  
  <https://docs.ansible.com/ansible/latest/modules/ec2_vpc_net_module.html>
  
  <https://docs.ansible.com/ansible/latest/modules/ec2_vpc_subnet_module.html>
  
  **Tags:** ansible, amazon-ec2, aws-vpc
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-18. Score: 1 | Accepted answer
  
  map\_public parameter set to true in the second link should do this.
  
  
  ---
  
  