Added ssh configuration

This commit is contained in:
Lulzette 2021-12-19 16:10:24 +00:00
parent 99597b4e30
commit e6cb514231
3 changed files with 14 additions and 15 deletions

View File

@ -3,5 +3,6 @@
connection: local
roles:
- { role: packages, become: true}
- { role: ssh, become: true}
- configs

View File

@ -0,0 +1,4 @@
- name: Reload sshd
ansible.builtin.service:
name: sshd
state: restarted

View File

@ -1,18 +1,12 @@
---
- name: Put authorized keys
template:
src: files/auth_keys
dest: /etc/ssh/auth_keys
- name: Put authorized keys
template:
src: files/auth_keys
dest: /etc/ssh/auth_keys
- name: Put sshd config
template:
src: files/sshd_config
dest: /etc/ssh/sshd_config
notify: Reload sshd
- name: Reload sshd
ansible.builtin.service:
name: sshd
state: restarted
- name: Put sshd config
template:
src: files/sshd_config
dest: /etc/ssh/sshd_config
notify: Reload sshd