basics.yml aktualisiert
This commit is contained in:
parent
f4df37828e
commit
5603931d11
14
basics.yml
14
basics.yml
@ -299,6 +299,20 @@
|
|||||||
- Restart sshd
|
- Restart sshd
|
||||||
when: nocontainer.stat.exists == true
|
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
|
- name: Disable external sftp-Subsystem
|
||||||
replace:
|
replace:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
Loading…
Reference in New Issue
Block a user