ansible/tasks/debian-general/sshbanner.yml

8 lines
245 B
YAML
Raw Normal View History

2022-09-11 19:11:31 +02:00
---
- 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