From 082457e3fc9d096931aad0f2ea4bba75d51889f5 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Mon, 8 May 2017 19:50:57 +0100 Subject: [PATCH] Using discourse user for git clone etc fixed --- roles/discourse/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/discourse/tasks/main.yml b/roles/discourse/tasks/main.yml index 92e7c21..963c764 100644 --- a/roles/discourse/tasks/main.yml +++ b/roles/discourse/tasks/main.yml @@ -11,10 +11,10 @@ name: discourse system: yes state: present - shell: /bin/false - home: /var/discourse + shell: /bin/bash + home: /home/discourse createhome: true - group: discourse + groups: discourse,docker uid: 1000 - name: Directory for Discourse present @@ -28,8 +28,8 @@ git: repo: https://github.com/discourse/discourse_docker.git dest: /var/discourse + become: yes become_user: 'discourse' - become_flags: '-s /bin/sh' - name: Count how much swap is available shell: "free -g --si | awk '/^Swap:/{print $2}'" @@ -101,10 +101,10 @@ template: src: templates/standalone.yml.j2 dest: /var/discourse/containers/app.yml + become: yes become_user: discourse - become_flags: '-s /bin/bash' - name: Rebuild Discourse app command: /var/discourse/launcher rebuild app + become: yes become_user: discourse - become_flags: '-s /bin/bash' -- GitLab