moving files to old

This commit is contained in:
2021-02-28 23:19:04 +00:00
parent 63657fbe47
commit 86d3a9a0ec
28 changed files with 0 additions and 0 deletions

View File

@@ -1,5 +0,0 @@
---
- name: restart ssh
service:
name: ssh
state: restarted

View File

@@ -1,34 +0,0 @@
---
- name: Remove any PermitRootLogin instruction
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^PermitRootLogin"
state: absent
notify: restart ssh
- name: Disable SSH root login
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^PermitRootLogin"
line: "PermitRootLogin prohibit-password"
state: present
notify: restart ssh
- name: Disable password authentication
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?PasswordAuthentication"
line: "PasswordAuthentication no"
state: present
notify: restart ssh
- name: Set SSH port
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^Port"
line: "Port {{sshd_port}}"
state: present
notify: restart ssh
- name: Test
lineinfile