Reset SSH-port of host-machines to 1022

I want to use port 22 for my git-server, therefore I have to make this
port free for use of kubernetes. This change allows this, so when I want
to connect to the host-machines I'll use port 1022.
This commit is contained in:
2025-09-17 00:50:26 +02:00
parent 1b32fb309c
commit 75a485fbff
6 changed files with 16 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
ansible_ssh_common_args: '-o StrictHostKeyChecking=accept-new -o ProxyCommand="ssh -p 22 -W %h:%p -q root@188.245.199.197"'
ansible_ssh_common_args: -o StrictHostKeyChecking=accept-new -o ProxyCommand="ssh -p 1022 -W %h:%p -q root@{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
k3s_version: v1.31.6+k3s1

View File

@@ -1,3 +1,4 @@
ansible_user: root
ansible_port: 1022
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"