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 }}"
|
user: "{{ ssh_user }}"
|
||||||
with_file:
|
with_file:
|
||||||
- "{{ ssh_key }}"
|
- "{{ ssh_key }}"
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ ssh_user }}"
|
||||||
- name: set up SSH properly
|
- name: set up SSH properly
|
||||||
block:
|
block:
|
||||||
- name: disable root SSH login
|
- name: disable root SSH login
|
||||||
|
|
Loading…
Reference in New Issue