Made sure authorized_keys is executed with login user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user