Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Nounous
Ansible
Commits
95d60868
Commit
95d60868
authored
4 years ago
by
ynerant
Committed by
ynerant
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[mailman3] Automatically apply migrations and compress static files
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
parent
ee31feff
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/mailman3/tasks/main.yml
+12
-1
12 additions, 1 deletion
roles/mailman3/tasks/main.yml
with
12 additions
and
1 deletion
roles/mailman3/tasks/main.yml
+
12
−
1
View file @
95d60868
...
...
@@ -41,7 +41,6 @@
# You will need to setup postgres
# sudo -u postgres createuser -P mailman3web
# sudo -u postgres createdb -O mailman3web mailman3web
# Then migrate data: sudo /usr/share/mailman3-web/manage.py migrate
-
name
:
Configure mailman3-web
template
:
src
:
mailman3/mailman-web.py.j2
...
...
@@ -57,6 +56,18 @@
dest
:
/usr/local/bin/mailman-web
state
:
link
-
name
:
Migrate Django database
django_manage
:
command
:
migrate
project_path
:
/usr/share/mailman3-web
notify
:
Restart mailman3-web
-
name
:
Compress static files
django_manage
:
command
:
compress
project_path
:
/usr/share/mailman3-web
notify
:
Restart mailman3-web
-
name
:
Indicate role in motd
template
:
src
:
update-motd.d/05-service.j2
...
...
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