summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd/autoinstall
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-02-25 01:28:18 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-02-25 01:28:18 +0100
commit4e3053749991a09fbdf17ad93ee6654f4fbbf7a7 (patch)
treec1511e7a0a6db02510e51295b70e3c44063e1bc4 /roles/installer/openbsd/autoinstall
parentapt-repo/backports: fix for bookworm; ch-installsmb increase samba share for ... (diff)
installer/* improve regexp to set ssh port and fix ssh port config for newer ubuntu releases
Diffstat (limited to 'roles/installer/openbsd/autoinstall')
-rw-r--r--roles/installer/openbsd/autoinstall/templates/install.site.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/installer/openbsd/autoinstall/templates/install.site.j2 b/roles/installer/openbsd/autoinstall/templates/install.site.j2
index 3608c9a4..72daa488 100644
--- a/roles/installer/openbsd/autoinstall/templates/install.site.j2
+++ b/roles/installer/openbsd/autoinstall/templates/install.site.j2
@@ -10,7 +10,7 @@ EOF
{% if ansible_port is defined %}
echo "Setting SSH port to {{ ansible_port }}"
-sed -e 's/^\(\s*#*\s*Port.*\)/Port {{ ansible_port }}/' -i /etc/ssh/sshd_config
+sed -e 's/^\s*#*\s*Port\s\s*[0-9][0-9]*$/Port {{ ansible_port }}/' -i /etc/ssh/sshd_config
{% endif %}
echo "Installing python"