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 @@
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'
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