diff --git a/installer/remove/tpot.yml b/installer/remove/tpot.yml index 0783bd79..eb89ae86 100644 --- a/installer/remove/tpot.yml +++ b/installer/remove/tpot.yml @@ -218,7 +218,7 @@ - name: Revert Comment out Port(s) in sshd_config, can cause port conflicts on deploy (AlmaLinux, Debian, Fedora, openSUSE Tumbleweed, Raspbian, Rocky, Ubuntu) ansible.builtin.replace: path: /etc/ssh/sshd_config - regexp: "^# (Port [0-9]+)" + regexp: '^# (Port (?!22$)[0-9]+)' replace: '\1' when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"] tags: