16 lines
294 B
YAML
16 lines
294 B
YAML
---
|
|
- name: copy sshd config file
|
|
copy:
|
|
src: sshd_config
|
|
dest: /etc/ssh/
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart ssh
|
|
|
|
- name: set my token
|
|
authorized_key:
|
|
user: ovodianov
|
|
state: present
|
|
key: "{{ lookup('file', '~/.ssh/home.lab.local.pub') }}"
|