From 5603931d11b3ccb2c1746fdd1736d1bdab61fef3 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 18 Jul 2023 16:11:47 +0200 Subject: [PATCH] basics.yml aktualisiert --- basics.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/basics.yml b/basics.yml index 99da6f7..b6b31c5 100644 --- a/basics.yml +++ b/basics.yml @@ -299,6 +299,20 @@ - Restart sshd when: nocontainer.stat.exists == true + - name: SSH client settings + blockinfile: + path: /etc/ssh/ssh_config.d/settings.conf + mode: "0444" + owner: root + group: root + create: yes + insertbefore: BOF # Beginning of the file + marker: "# {mark} ANSIBLE MANAGED BLOCK" + block: | + Host * + StrictHostKeyChecking=accept-new + backup: yes + - name: Disable external sftp-Subsystem replace: path: /etc/ssh/sshd_config