First commit
This commit is contained in:
commit
dc708aa3dd
11 changed files with 340 additions and 0 deletions
7
tasks/provisioning/post-install/ssh.yml
Normal file
7
tasks/provisioning/post-install/ssh.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- name: Disable root login
|
||||
lineinfile:
|
||||
path: "{{ sshd_config_file }}"
|
||||
regexp: "^PermitRootLogin"
|
||||
line: "PermitRootLogin no"
|
||||
backup: yes
|
||||
notify: restart sshd
|
Loading…
Add table
Add a link
Reference in a new issue