From dedc615c4bf90b1f3ec3e5309b32ac305f255f13 Mon Sep 17 00:00:00 2001 From: Tom Robertshaw Date: Wed, 25 Jan 2017 10:06:55 +0000 Subject: [PATCH] Copy SSH Key with copy rather than template module Doing so adds support for copying encrypted keys files directly. This was added to ansible in 2.1 to the copy command but seemingly not to template. --- tasks/update-code/git.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/update-code/git.yml b/tasks/update-code/git.yml index 505afdd..bc6be41 100644 --- a/tasks/update-code/git.yml +++ b/tasks/update-code/git.yml @@ -1,6 +1,6 @@ --- - name: ANSISTRANO | GIT | Ensure GIT deployment key is up to date - template: + copy: src: "{{ ansistrano_git_identity_key_path }}" dest: "{{ ansistrano_deploy_to }}/git_identity_key" mode: 0400