Made sure authorized_keys is executed with login user

This commit is contained in:
Jim Martens 2020-01-03 18:32:05 +01:00
parent 6ca5682d10
commit f71b598fde
1 changed files with 2 additions and 0 deletions

View File

@ -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