From 0eb58c8f3cadce7bbf5b238b7fa787f5cb30108a Mon Sep 17 00:00:00 2001 From: Colin Hoglund Date: Mon, 5 Dec 2016 12:10:34 -0500 Subject: [PATCH] add ssh key path to fix check_mode issue --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 050b52a..79626d0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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