From b30fb6caf727b8b84bc6cdddd00a01955d01bcee Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 27 Jan 2024 14:26:57 +0200
Subject: [PATCH] Ansible: Use port 22 for ns1.

My SSH config uses port 443 which is great for breaking out from
restricted networks, but not so great when restarting HAProxy and the
SSH connection breaks during an Ansible run.
---
 Ansible/hosts/all.yaml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Ansible/hosts/all.yaml b/Ansible/hosts/all.yaml
index 13da33b..4079b99 100644
--- a/Ansible/hosts/all.yaml
+++ b/Ansible/hosts/all.yaml
@@ -2,8 +2,9 @@
 all:
   hosts:
     ns1:
-      ansible_host: ns1.shore.co.il
       ansible_become_method: community.general.doas
+      ansible_host: ns1.shore.co.il
+      ansible_ssh_port: 22
     ns4:
       ansible_host: ns4.shore.co.il
     kodi:
@@ -15,9 +16,9 @@ all:
     host01:
       ansible_host: host01.shore.co.il
     localhost:
-      ansible_host: localhost
       ansible_become: false
       ansible_connection: local
+      ansible_host: localhost
   vars:
     ansible_become: true
     ansible_become_user: root
@@ -25,5 +26,5 @@ all:
     ansible_python_interpreter: python3
   children:
     pkg_mgr_apt:
-    pkg_mgr_opkg:
     pkg_mgr_openbsd_pkg:
+    pkg_mgr_opkg:
-- 
GitLab