Skip to content

Commit

Permalink
adding tags, updating .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
IPvSean committed Mar 13, 2018
1 parent 53af698 commit b4ffaa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ bak/
*.BAK
*.DS_Store
*.pem
instructor_inventory.txt
tools/aws_lab_setup/aws-private.pem
./*.html
instructor_inventory.txt
*.html
10 changes: 10 additions & 0 deletions provisioner/roles/aws_workshop_login_page/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
state: "{{ s3_state }}"
region: "{{ec2_region}}"
force: yes
tags:
- s3website

- name: enable web hosting
s3_website:
Expand All @@ -19,6 +21,8 @@
suffix: "{{ ec2_name_prefix|lower }}-index.html"
register: s3_site
when: s3_state == 'present'
tags:
- s3website

- name: DNS for student webpage
route53:
Expand All @@ -31,6 +35,8 @@
when:
- s3_state == 'present'
- ec2_region == 'us-east-1'
tags:
- s3website

- name: DNS for student webpage
route53:
Expand All @@ -43,6 +49,8 @@
when:
- s3_state == 'present'
- ec2_region != 'us-east-1'
tags:
- s3website

- name: PUT student webpage
s3_sync:
Expand All @@ -54,3 +62,5 @@
permission: public-read
include: "{{ ec2_name_prefix|lower }}-index.html"
when: s3_state == 'present'
tags:
- s3website

0 comments on commit b4ffaa8

Please sign in to comment.