Skip to content

Commit e6aef6f

Browse files
author
Colin Hoglund
authored
Merge pull request #34 from singleplatform-eng/fix_ssh_keys_check_mode
add ssh key path to fix check_mode issue
2 parents f73d823 + 0eb58c8 commit e6aef6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
tags: ['users','configuration']
2727

2828
- name: SSH keys
29-
authorized_key: user="{{item.0.username}}" key="{{item.1}}"
29+
authorized_key:
30+
user: "{{item.0.username}}"
31+
key: "{{item.1}}"
32+
path: "/home/{{item.0.username}}/.ssh/authorized_keys"
3033
with_subelements:
3134
- "{{users}}"
3235
- ssh_key

0 commit comments

Comments
 (0)