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

add variable that installing the systemd-journal-persistent package can be optional

parent 43a0702f
No related branches found
No related tags found
1 merge request!7Make systemd journal persistent optional
......@@ -3,3 +3,4 @@
dns_hostname_fqdn: false
hosts_alternates: []
hosts_additionals: []
journal_persitent_with_package: true
......@@ -18,6 +18,7 @@
when:
- syslogserver is not defined or syslogserver.split(":")[0] != ansible_fqdn
- ansible_distribution_major_version|int >= 9
- journal_persitent_with_package
register: syslog_provider
tags:
- syslog
......@@ -28,7 +29,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