8 lines
245 B
YAML
8 lines
245 B
YAML
|
---
|
||
|
- name: Ensure SSH banner is uncommented and right path in /etc/ssh/sshd_config
|
||
|
ansible.builtin.lineinfile:
|
||
|
line: "Banner /etc/banner"
|
||
|
path: /etc/ssh/sshd_config
|
||
|
regexp: '^#\s*Banner.*$'
|
||
|
- import_tasks: restart-ssh-service.yml
|