First commit
This commit is contained in:
18
roles/system/tasks/sshd.yml
Normal file
18
roles/system/tasks/sshd.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- name: ssh configuration file
|
||||
template:
|
||||
src: sshd_config.j2
|
||||
dest: /etc/ssh/sshd_config
|
||||
notify:
|
||||
- restart sshd
|
||||
|
||||
- name: ssh keys home
|
||||
authorized_key:
|
||||
user: root
|
||||
state: present
|
||||
key: "{{ lookup('file', 'ssh/home.id_rsa.pub') }}"
|
||||
|
||||
- name: ssh keys work
|
||||
authorized_key:
|
||||
user: root
|
||||
state: present
|
||||
key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}"
|
Reference in New Issue
Block a user