summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd/autoinstall/templates/install.site.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
commit17077868e615fa7115abdb03a5af4662ab0a3679 (patch)
tree22cb752792c3410bcfe8ce856b9746cad1ccf8d3 /roles/installer/openbsd/autoinstall/templates/install.site.j2
parentremove spreadspace k8s-test cluster (diff)
refactor all install roles ans playbooks to work with new variable install_hostname
Diffstat (limited to 'roles/installer/openbsd/autoinstall/templates/install.site.j2')
-rw-r--r--roles/installer/openbsd/autoinstall/templates/install.site.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/installer/openbsd/autoinstall/templates/install.site.j2 b/roles/installer/openbsd/autoinstall/templates/install.site.j2
index 82928daa..974b516a 100644
--- a/roles/installer/openbsd/autoinstall/templates/install.site.j2
+++ b/roles/installer/openbsd/autoinstall/templates/install.site.j2
@@ -8,9 +8,9 @@ cat <<EOF > /root/.ssh/authorized_keys
{{ ssh_keys_root | join('\n') }}
EOF
-{% if hostvars[hostname].ansible_port is defined %}
-echo "Setting SSH port to {{ hostvars[hostname].ansible_port }}"
-sed -e 's/^\(\s*#*\s*Port.*\)/Port {{ hostvars[hostname].ansible_port }}/' -i /etc/ssh/sshd_config
+{% if hostvars[install_hostname].ansible_port is defined %}
+echo "Setting SSH port to {{ hostvars[install_hostname].ansible_port }}"
+sed -e 's/^\(\s*#*\s*Port.*\)/Port {{ hostvars[install_hostname].ansible_port }}/' -i /etc/ssh/sshd_config
{% endif %}
echo "Installing python"