Skip to content

Commit

Permalink
Revert "Allowing access from dev box IP"
Browse files Browse the repository at this point in the history
This reverts commit 773441d.
  • Loading branch information
mikhail committed Aug 4, 2016
1 parent 6808f55 commit a1e554e
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 80 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.DS_Store
files/existing_security_groups_*.json
34 changes: 0 additions & 34 deletions files/ec2_group_facts.py

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/get_instance_details.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

- name: Format instance selection tags for ec2_remote_facts
command: python {{roles_directory}}/ec2-start-stop/files/build_tags_dict.py "{{instances.tags}}"
command: python roles/ec2-start-stop/files/build_tags_dict.py "{{instances.tags}}"
register: ec2_remote_tags

- name: Get instance_ids
Expand Down
7 changes: 0 additions & 7 deletions tasks/get_my_ip.yml

This file was deleted.

6 changes: 0 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@
- name: Stop instances
include: stop/stop_instances.yml
when: action == "stop"

- name: Open access to my IP
include: start/open_access.yml
when: action == "start" and instances.security_group is defined


19 changes: 0 additions & 19 deletions tasks/start/open_access.yml

This file was deleted.

13 changes: 1 addition & 12 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,4 @@
instances:
tags:
Environment: 'Dev'
elastic_ip: "yes"
security_group:
rules:
- proto: tcp
from_port: 80
to_port: 80
cidr_ip: "{{my_ip}}"
- proto: tcp
from_port: 443
to_port: 443
cidr_ip: "{{my_ip}}"
rules_egress: []
elastic_ip: "yes"

0 comments on commit a1e554e

Please sign in to comment.