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 @@ ...@@ -3,3 +3,4 @@
dns_hostname_fqdn: false dns_hostname_fqdn: false
hosts_alternates: [] hosts_alternates: []
hosts_additionals: [] hosts_additionals: []
journal_persitent_with_package: true
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
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
- journal_persitent_with_package
register: syslog_provider register: syslog_provider
tags: tags:
- syslog - syslog
...@@ -28,7 +29,9 @@ ...@@ -28,7 +29,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