roles/common: Add sshd tasks

This commit is contained in:
William Woodruff 2019-11-17 13:15:56 -05:00 committed by Jack Ivanov
parent f344c43e2d
commit 44c0237bc8
2 changed files with 10 additions and 0 deletions

View file

@ -24,4 +24,6 @@
tags:
- always
- import_tasks: sshd.yml
- meta: flush_handlers

View file

@ -0,0 +1,8 @@
---
- name: Disable root password login
lineinfile:
dest: /etc/ssh/sshd_config
regexp: '^#?PermitRootLogin'
line: PermitRootLogin prohibit-password
state: present