From b7ce93c4ea99d244e657dd2af59abfd4e41492b4 Mon Sep 17 00:00:00 2001 From: Markus Date: Thu, 8 Aug 2024 08:59:13 +0300 Subject: [PATCH] add default wrapper for variable on pipe --- infrastructure/server-setup/tasks/ufw.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: