Skip to content
Snippets Groups Projects
Commit 082457e3 authored by Chris Croome's avatar Chris Croome
Browse files

Using discourse user for git clone etc fixed

parent 2a1265d5
No related branches found
No related tags found
1 merge request!1Postfix
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
name: discourse name: discourse
system: yes system: yes
state: present state: present
shell: /bin/false shell: /bin/bash
home: /var/discourse home: /home/discourse
createhome: true createhome: true
group: discourse groups: discourse,docker
uid: 1000 uid: 1000
- name: Directory for Discourse present - name: Directory for Discourse present
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
git: git:
repo: https://github.com/discourse/discourse_docker.git repo: https://github.com/discourse/discourse_docker.git
dest: /var/discourse dest: /var/discourse
become: yes
become_user: 'discourse' become_user: 'discourse'
become_flags: '-s /bin/sh'
- name: Count how much swap is available - name: Count how much swap is available
shell: "free -g --si | awk '/^Swap:/{print $2}'" shell: "free -g --si | awk '/^Swap:/{print $2}'"
...@@ -101,10 +101,10 @@ ...@@ -101,10 +101,10 @@
template: template:
src: templates/standalone.yml.j2 src: templates/standalone.yml.j2
dest: /var/discourse/containers/app.yml dest: /var/discourse/containers/app.yml
become: yes
become_user: discourse become_user: discourse
become_flags: '-s /bin/bash'
- name: Rebuild Discourse app - name: Rebuild Discourse app
command: /var/discourse/launcher rebuild app command: /var/discourse/launcher rebuild app
become: yes
become_user: discourse become_user: discourse
become_flags: '-s /bin/bash'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment