From b8b54ab701f6c5973fb2c403cc048e96a8b2cf52 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 19 Oct 2017 14:23:01 -0700 Subject: [PATCH] add-sshkey: make the private key owner-writable Otherwise, it is necessary to change perms to remove it later. Change-Id: I405cec0a1434a95a0a0e3b60b660cdcadc9e9b24 --- roles/add-sshkey/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/add-sshkey/tasks/main.yaml b/roles/add-sshkey/tasks/main.yaml index b83cd4ea8..74e9f2353 100644 --- a/roles/add-sshkey/tasks/main.yaml +++ b/roles/add-sshkey/tasks/main.yaml @@ -2,7 +2,7 @@ copy: dest: "~/.ssh/id_rsa" content: "{{ ssh_key.ssh_private_key }}" - mode: 0400 + mode: 0600 # To almost everyone's surprise, if your pub key is different than # your private, the private won't work. But it's okay for it to be