Added bootstrap role with the tasks, defaults and handlers necessary for the playbooks
This commit is contained in:
10
roles/bootstrap/tasks/denyroot@ssh.yml
Normal file
10
roles/bootstrap/tasks/denyroot@ssh.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Disable remote login for root
|
||||
copy:
|
||||
src: sshd/denyroot.conf
|
||||
dest: /etc/ssh/sshd_config.d/denyroot.conf
|
||||
owner: "{{ root_acct }}"
|
||||
group: "{{ root_acct }}"
|
||||
force: yes
|
||||
register: sshroot_disabled
|
||||
tags: ['default', 'deny_sshroot']
|
Reference in New Issue
Block a user