Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
6d5c5677
Commit
6d5c5677
authored
Oct 23, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #360 from edx/jarv/logrotate
logrotate is not a service
parents
5100eba6
11af6140
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
9 deletions
+1
-9
playbooks/roles/common/handlers/main.yml
+0
-6
playbooks/roles/nginx/tasks/main.yml
+1
-3
No files found.
playbooks/roles/common/handlers/main.yml
View file @
6d5c5677
...
...
@@ -2,9 +2,3 @@
-
name
:
common | restart rsyslogd
service
:
name=rsyslog state=restarted
sudo
:
True
-
name
:
common | restart logrotate
service
:
name=logrotate state=restarted
sudo
:
True
playbooks/roles/nginx/tasks/main.yml
View file @
6d5c5677
...
...
@@ -67,14 +67,12 @@
-
name
:
nginx | Set up nginx access log rotation
template
:
dest=/etc/logrotate.d/nginx-access src=edx_logrotate_nginx_access.j2 owner=root group=root mode=644
notify
:
common | restart logrotate
tags
:
-
logging
-
update
-
name
:
nginx | Set up nginx access log rotation
template
:
dest=/etc/logrotate.d/nginx-error src=edx_logrotate_nginx_error.j2 owner=root group=root mode=644
notify
:
common | restart logrotate
tags
:
-
logging
-
update
...
...
@@ -85,7 +83,7 @@
tags
:
-
nginx
-
update
# If tasks that notify restart nginx don't change the state of the remote system
# their corresponding notifications don't get run. If nginx has been stopped for
# any reason, this will ensure that it is started up again.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment