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
21602e05
Commit
21602e05
authored
7 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
tweaks
parent
599618be
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
+24
-0
24 additions, 0 deletions
roles/discourse/tasks/main.yml
with
24 additions
and
0 deletions
roles/discourse/tasks/main.yml
+
24
−
0
View file @
21602e05
...
...
@@ -17,6 +17,20 @@
groups
:
discourse,docker
uid
:
1000
-
name
:
Stat /var/discourse/lost+found
stat
:
path
:
"
/var/discourse/lost+found"
register
:
var_discourse_partition
-
block
:
-
name
:
Delete lost+found directory if /var/discourse is a partition
file
:
dest
:
/var/discourse/lost+found
state
:
absent
when
:
var_discourse_partition.stat.exists == True
-
name
:
Directory for Discourse present
file
:
dest
:
/var/discourse
...
...
@@ -86,6 +100,16 @@
become
:
yes
become_user
:
'
discourse'
-
block
:
-
name
:
Create lost+found directory
command
:
mklost+found
args
:
chdir
:
/var/discourse
creates
:
/var/discourse/lost+found
when
:
var_discourse_partition.stat.exists == True
-
name
:
Count how much swap is available
shell
:
"
free
-g
--si
|
awk
'/^Swap:/{print
$2}'"
args
:
...
...
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