Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
common
Commits
d22011bb
Commit
d22011bb
authored
7 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
basic-system: change conditions on systemd-journal-persistent
parent
6fab2956
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
basic-system/tasks/logging.yml
+13
-10
13 additions, 10 deletions
basic-system/tasks/logging.yml
with
13 additions
and
10 deletions
basic-system/tasks/logging.yml
+
13
−
10
View file @
d22011bb
...
@@ -8,33 +8,36 @@
...
@@ -8,33 +8,36 @@
-
sysctl
-
sysctl
-
config
-
config
-
name
:
ensure rsyslog is absent without broken dependecies
apt
:
name=rsyslog state=absent purge=yes dpkg_options="force-confdef,force-confold,force-depends"
when
:
-
ansible_distribution_major_version|int >=
9
-
syslogserver is defined
-
syslogserver.split(":")[0] != ansible_fqdn
tags
:
-
config
-
syslog
-
name
:
ensure system journal is a system-log-daemon with our package
-
name
:
ensure system journal is a system-log-daemon with our package
apt
:
name=systemd-journal-persistent state=present
apt
:
name=systemd-journal-persistent state=present
when
:
when
:
-
syslogserver is not defined or syslogserver.split(":")[0] != ansible_fqdn
-
syslogserver is not defined or syslogserver.split(":")[0] != ansible_fqdn
-
ansible_distribution_major_version|int >=
9
-
ansible_distribution_major_version|int >=
9
register
:
syslog_provider
tags
:
tags
:
-
config
-
config
-
syslog
-
syslog
-
name
:
ensure systemd journal is presistent
-
name
:
ensure systemd journal is presistent
file
:
path=/var/log/journal state=directory
file
:
path=/var/log/journal state=directory
when
:
-
ansible_distribution_major_version|int <
9
notify
:
notify
:
-
configure journal directory
-
configure journal directory
tags
:
tags
:
-
config
-
config
-
syslog
-
syslog
-
name
:
ensure rsyslog is absent without broken dependecies
apt
:
name=rsyslog state=absent purge=yes dpkg_options="force-confdef,force-confold,force-depends"
when
:
-
not syslog_provider.skipped
-
ansible_distribution_major_version|int >=
9
-
syslogserver is not defined or syslogserver.split(":")[0] != ansible_fqdn
tags
:
-
config
-
syslog
-
name
:
ensure rsyslog is running and enabled
-
name
:
ensure rsyslog is running and enabled
service
:
name=rsyslog state=running enabled=yes
service
:
name=rsyslog state=running enabled=yes
when
:
when
:
...
...
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