route53 alias_hosted_zone_id

11 views
Skip to first unread message

David Villasmil

unread,
May 23, 2018, 2:39:24 PM5/23/18
to Ansible Project
Hello guys,

I can use like:

  # >> 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



But If i try to use alias_hosted_zone_id with a variable like:

      alias_hosted_zone_id: "{{ hosted_zone_id }}"



I get:

"msg": ""[]" is not a valid hosted zone id. is not a valid encrypted identifier"

help!!

Thanks!

David Villasmil

unread,
May 23, 2018, 4:00:15 PM5/23/18
to Ansible Project
Nevermind, layer 8.. my mistake, i will open a new one
Reply all
Reply to author
Forward
0 new messages