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