Skip to content

Commit

Permalink
add default wrapper for variable on pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
makelicious committed Aug 8, 2024
1 parent 04fc9f8 commit b7ce93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/server-setup/tasks/ufw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- name: Set default SSH port
set_fact:
ssh_port: '{{ internal_ssh_port | ansible_port | default(22) }}'
ssh_port: '{{ internal_ssh_port | default(ansible_port) | default(22) }}'

- name: Allow OpenSSH for IPv4 from specific addresses
ufw:
Expand Down

0 comments on commit b7ce93c

Please sign in to comment.