Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cotech
ansible
Commits
2a1265d5
Commit
2a1265d5
authored
7 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
checkout and build discourse app as user discourse
parent
bee0af89
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Postfix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/discourse/tasks/main.yml
+5
-7
5 additions, 7 deletions
roles/discourse/tasks/main.yml
with
5 additions
and
7 deletions
roles/discourse/tasks/main.yml
+
5
−
7
View file @
2a1265d5
...
...
@@ -4,7 +4,7 @@
name
:
discourse
system
:
yes
state
:
present
u
id
:
1000
g
id
:
1000
-
name
:
User for Discourse present
user
:
...
...
@@ -12,9 +12,10 @@
system
:
yes
state
:
present
shell
:
/bin/false
home
:
/var/discourse
createhome
:
true
group
:
discourse
uid
:
1000
createhome
:
false
-
name
:
Directory for Discourse present
file
:
...
...
@@ -27,9 +28,8 @@
git
:
repo
:
https://github.com/discourse/discourse_docker.git
dest
:
/var/discourse
become
:
yes
become_user
:
discourse
become_flags
:
'
-s
/bin/bash'
become_user
:
'
discourse'
become_flags
:
'
-s
/bin/sh'
-
name
:
Count how much swap is available
shell
:
"
free
-g
--si
|
awk
'/^Swap:/{print
$2}'"
...
...
@@ -101,12 +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'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment