Made sure authorized_keys is executed with login user
This commit is contained in:
parent
6ca5682d10
commit
f71b598fde
|
@ -49,6 +49,8 @@
|
|||
user: "{{ ssh_user }}"
|
||||
with_file:
|
||||
- "{{ ssh_key }}"
|
||||
become: yes
|
||||
become_user: "{{ ssh_user }}"
|
||||
- name: set up SSH properly
|
||||
block:
|
||||
- name: disable root SSH login
|
||||
|
|
Loading…
Reference in New Issue