2021-05-01 19:57:06 +02:00
|
|
|
---
|
2021-05-01 20:26:50 +02:00
|
|
|
- name: add sshkey for admin user
|
2021-05-01 19:57:06 +02:00
|
|
|
ansible.posix.authorized_key:
|
|
|
|
user: "{{ item.name }}"
|
|
|
|
state: present
|
|
|
|
key: "{{ item.key }}"
|
|
|
|
loop: "{{ yunohost.admin_users }}"
|
|
|
|
|
|
|
|
- name: Disable Password Authentication for ssh.usage
|
|
|
|
ansible.builtin.replace:
|
|
|
|
path: /etc/ssh/sshd_config
|
2021-05-01 22:33:33 +02:00
|
|
|
regexp: PasswordAuthentication
|
2021-05-01 19:57:06 +02:00
|
|
|
replace: 'PasswordAuthentication no\1'
|