From 03913d067fa38f462717fc45707e74739492d576 Mon Sep 17 00:00:00 2001 From: vkill Date: Mon, 18 Jul 2016 13:38:04 +0800 Subject: [PATCH 1/3] Support shred git_identity_key --- tasks/update-code/git.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/update-code/git.yml b/tasks/update-code/git.yml index 45fbf6f..22696c4 100644 --- a/tasks/update-code/git.yml +++ b/tasks/update-code/git.yml @@ -29,6 +29,12 @@ register: ansistrano_git_result when: ansistrano_git_identity_key_path|trim != "" +- name: ANSISTRANO | GIT | Shred GIT deployment key + command: shred -f git_identity_key + args: + chdir: "{{ ansistrano_deploy_to }}" + when: ansistrano_git_identity_key_path|trim != "" + - name: ANSISTRANO | GIT | Export a copy of the repo command: git checkout-index -f -a --prefix="{{ ansistrano_release_path.stdout }}/" args: From b049642a458df5c1bce188a42ebe568b18ed4127 Mon Sep 17 00:00:00 2001 From: vkill Date: Mon, 18 Jul 2016 15:45:54 +0800 Subject: [PATCH 2/3] Update shred git_identity_key command --- tasks/update-code/git.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/update-code/git.yml b/tasks/update-code/git.yml index 22696c4..24eb0ae 100644 --- a/tasks/update-code/git.yml +++ b/tasks/update-code/git.yml @@ -30,9 +30,7 @@ when: ansistrano_git_identity_key_path|trim != "" - name: ANSISTRANO | GIT | Shred GIT deployment key - command: shred -f git_identity_key - args: - chdir: "{{ ansistrano_deploy_to }}" + command: "shred -f {{ ansistrano_deploy_to }}/git_identity_key" when: ansistrano_git_identity_key_path|trim != "" - name: ANSISTRANO | GIT | Export a copy of the repo From e393f78fec81405f02499d5ea9a76e156b0bfafe Mon Sep 17 00:00:00 2001 From: vkill Date: Tue, 19 Jul 2016 09:06:03 +0800 Subject: [PATCH 3/3] Update shred git_identity_key command --- 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 24eb0ae..d84da2e 100644 --- a/tasks/update-code/git.yml +++ b/tasks/update-code/git.yml @@ -30,7 +30,7 @@ when: ansistrano_git_identity_key_path|trim != "" - name: ANSISTRANO | GIT | Shred GIT deployment key - command: "shred -f {{ ansistrano_deploy_to }}/git_identity_key" + command: shred -f "{{ ansistrano_deploy_to }}/git_identity_key" when: ansistrano_git_identity_key_path|trim != "" - name: ANSISTRANO | GIT | Export a copy of the repo