Skip to content
Snippets Groups Projects
Commit d6e7e074 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

Make systemd journal persistent optional

parent c45a635c
Branches
No related tags found
1 merge request!7Make systemd journal persistent optional
Pipeline #1998 passed
......@@ -6,3 +6,4 @@ hosts_additionals: []
etckeeper: true
rsyslog_needed: false
hosts_precious: false
journal_persitent_with_package: true
......@@ -19,6 +19,7 @@
- syslogserver is not defined or syslogserver.split(":")[0] != ansible_fqdn
- ansible_distribution_major_version|int >= 9
- not rsyslog_needed
- journal_persitent_with_package
register: syslog_provider
tags:
- syslog
......@@ -29,7 +30,9 @@
path: /var/log/journal
state: directory
when:
- ansible_distribution_major_version|int < 9
- (ansible_distribution_major_version|int < 9) or
(not journal_persitent_with_package)
register: syslog_provider
notify:
- configure journal directory
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment