# >> Create the DNS load balancer to the instances
- name: Creating DNS load balancer
route53:
command: create
zone: "{{ domain }}"
value: "{{ cluster }}-{{ item }}.{{ domain }}"
alias: true
alias_hosted_zone_id: "KLAIUDIAUHSINUD"
identifier: "{{ cluster }}-{{ item }}"
record: "{{ cluster }}.{{ domain }}"
type: A
overwrite: yes
wait: yes
weight: 10
with_sequence: start={{ cluster_start }} end={{ cluster_end }} format=%02x
alias_hosted_zone_id: "{{ hosted_zone_id }}"
"msg": ""[]" is not a valid hosted zone id. is not a valid encrypted identifier"