mirror of
https://github.com/trailofbits/algo.git
synced 2025-07-31 18:03:03 +02:00
roles/common: Add sshd tasks
This commit is contained in:
parent
f344c43e2d
commit
44c0237bc8
2 changed files with 10 additions and 0 deletions
|
@ -24,4 +24,6 @@
|
|||
tags:
|
||||
- always
|
||||
|
||||
- import_tasks: sshd.yml
|
||||
|
||||
- meta: flush_handlers
|
||||
|
|
8
roles/common/tasks/sshd.yml
Normal file
8
roles/common/tasks/sshd.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
- name: Disable root password login
|
||||
lineinfile:
|
||||
dest: /etc/ssh/sshd_config
|
||||
regexp: '^#?PermitRootLogin'
|
||||
line: PermitRootLogin prohibit-password
|
||||
state: present
|
Loading…
Add table
Reference in a new issue