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
880767d8
Commit
880767d8
authored
3 years ago
by
shirenn
🌊
Browse files
Options
Downloads
Patches
Plain Diff
[logall] Quick fixes
parent
bc8d57f7
No related branches found
No related tags found
1 merge request
!327
[logall] Quick fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/logall/tasks/main.yml
+10
-8
10 additions, 8 deletions
roles/logall/tasks/main.yml
roles/logall/templates/logrotate.d/firewall.j2
+1
-1
1 addition, 1 deletion
roles/logall/templates/logrotate.d/firewall.j2
with
11 additions
and
9 deletions
roles/logall/tasks/main.yml
+
10
−
8
View file @
880767d8
---
-
name
:
Deploy firewall rsyslog
template
:
src
:
rsyslog.d/10-firewall.conf.j2
dest
:
/etc/rsyslog.d/10-firewall.conf
mode
:
0644
owner
:
root
group
:
root
-
name
:
Create firewall log directory
file
:
path
:
/var/log/firewall
...
...
@@ -15,6 +7,15 @@
group
:
root
state
:
directory
-
name
:
Deploy firewall rsyslog
template
:
src
:
rsyslog.d/10-firewall.conf.j2
dest
:
/etc/rsyslog.d/10-firewall.conf
mode
:
0644
owner
:
root
group
:
root
notify
:
systemctl restart rsyslog
-
name
:
Deploy firewall logrotate
template
:
src
:
logrotate.d/firewall.j2
...
...
@@ -22,3 +23,4 @@
mode
:
0644
owner
:
root
group
:
root
notify
:
systemctl restart logrotate.service
This diff is collapsed.
Click to expand it.
roles/logall/templates/logrotate.d/firewall.j2
+
1
−
1
View file @
880767d8
...
...
@@ -19,6 +19,6 @@
dateformat %Y-%m-%d.
extension log
postrotate
usr/lib/rsyslog/rsyslog-rotate
/
usr/lib/rsyslog/rsyslog-rotate
endscript
}
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