Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Fixed a bug which causes a SSH Port to be rejected by FW
Browse files Browse the repository at this point in the history
  • Loading branch information
ixidion committed Dec 23, 2017
1 parent e48898c commit b4a3657
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion group_vars/all/common.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
reboot_for_upgrades: false
ssh_port: "{{ ansible_port }}"
ssh_port: 22
14 changes: 7 additions & 7 deletions roles/common/tasks/setup_apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
- pv
- python3-pip

- name: allow ssh port in firewall
ufw:
rule: allow
direction: in
proto: tcp
port: "{{ ssh_port }}"

- name: ensure ufw started and default incoming policy denied
ufw:
state: enabled
Expand All @@ -27,13 +34,6 @@
direction: outgoing
policy: allow

- name: allow ssh port in firewall
ufw:
rule: allow
direction: in
proto: tcp
port: "{{ ssh_port }}"

- name: Check if a reboot is required (debian)
stat:
path: /var/run/reboot-required
Expand Down

0 comments on commit b4a3657

Please sign in to comment.