basics.yml aktualisiert

This commit is contained in:
olli 2023-07-18 16:11:47 +02:00
parent f4df37828e
commit 5603931d11

View File

@ -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