Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: 127.0.0.1
- tasks:
- - name: setup dev records
- route53:
- state: present
- private_zone: true
- zone: private_zone_name.com
- vpc_id: private_zone_vpc_id
- record: "{{ item }}.private_zone_name.com"
- type: A
- ttl: 3600
- value: "{{ hostvars[item].ec2_private_ip_address }}"
- overwrite: true
- with_items:
- - "{{ groups['ec2'] }}"
Add Comment
Please, Sign In to add comment