oleg.vodyanov91@gmail.com b7f69ea3e0 add roles
2025-05-14 00:40:20 +04:00

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') }}"