From f272a4c1db28c2b49ea0f411f3c94bf78ed937fb Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Sun, 29 Apr 2018 20:00:43 -0700
Subject: [PATCH] Making sure the '.ssh' directory is owned by the
gitlab-runner user
---
tasks/install_agent.deb.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tasks/install_agent.deb.yaml b/tasks/install_agent.deb.yaml
index 163de47..2b387de 100644
--- a/tasks/install_agent.deb.yaml
+++ b/tasks/install_agent.deb.yaml
@@ -34,8 +34,9 @@
- name: Create .ssh Directory for GitLab Runner User
file:
path: "/home/{{ gitlab_runner_user }}/.ssh"
- state: directory
+ owner: "{{ gitlab_runner_user }}"
mode: 0700
+ state: directory
- name: Install SSH Private Key
copy:
--
GitLab