Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Modify create_users.yml. (#1041) (#1184)
Browse files Browse the repository at this point in the history
Modify create_users.yml to make it more friendly to mac users.

Co-authored-by: Nova Kwok <[email protected]>
  • Loading branch information
liubo0127 and n0vad3v authored Feb 28, 2020
1 parent f7dee41 commit 56d7483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- name: set authorized key
authorized_key:
user: "{{ username }}"
key: "{{ lookup('file', '/home/{{ username }}/.ssh/id_rsa.pub') }}"
key: "{{ lookup('file', lookup('env','HOME')+ '/.ssh/id_rsa.pub') }}"
state: present

- name: update sudoers file
Expand Down

0 comments on commit 56d7483

Please sign in to comment.