diff --git a/infrastructure/server-setup/tasks/ufw.yml b/infrastructure/server-setup/tasks/ufw.yml index 43af63522..915f787e5 100644 --- a/infrastructure/server-setup/tasks/ufw.yml +++ b/infrastructure/server-setup/tasks/ufw.yml @@ -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: