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