Tok
2018-10-09 d61f1f5796756ab9d57df3ac43d262f46ac57448
Conditional code added to linklight to generate correct S3 URL by region
1 files modified
8 ■■■■ changed files
ansible/configs/linklight/pre_infra.yml 8 ●●●● patch | view | raw | blame | history
ansible/configs/linklight/pre_infra.yml
@@ -70,9 +70,15 @@
        debug:
          msg: "user.info: The list of VMs for this workshop is available at:"
      - name: generate S3 bucket URL for user email
      - name: generate S3 bucket URL for user email when ec2_region is us-east-1
        debug:
          msg:  "user.info: https://s3.amazonaws.com/{{ guid }}.{{ workshop_dns_zone }}/{{ guid }}-index.html" 
        when: ec2_region == 'us-east-1'
      - name: generate S3 bucket URL for user email when ec2_region is NOT us-east-1
        debug:
          msg:  "user.info: https://s3-{{ ec2_region }}.amazonaws.com/{{ guid }}.{{ workshop_dns_zone }}/{{ guid }}-index.html"
        when: ec2_region != 'us-east-1'
    when: create_login_page