Skip to content

Commit

Permalink
add ssh key path to fix check_mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Hoglund committed Dec 5, 2016
1 parent f73d823 commit 0eb58c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
tags: ['users','configuration']

- name: SSH keys
authorized_key: user="{{item.0.username}}" key="{{item.1}}"
authorized_key:
user: "{{item.0.username}}"
key: "{{item.1}}"
path: "/home/{{item.0.username}}/.ssh/authorized_keys"
with_subelements:
- "{{users}}"
- ssh_key
Expand Down

0 comments on commit 0eb58c8

Please sign in to comment.