aboutsummaryrefslogtreecommitdiffstats
path: root/roles/journald/README.md
blob: fcafc349ac5e88b9a502feacf95864bb833cd655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Journald
========

Description
-----------

The `journald` role configures the systemd journal.

Variables
---------

This role **accepts** the following variables:

Variable                     | Default | Description
-----------------------------|---------|------------
`journald_persistent`        | no      | Persist journal to disk
`journald_forward_to_syslog` | yes     | Forward journal messages to syslog socket
`journald_max_use`           |    | Set [maximum journal size](https://www.freedesktop.org/software/systemd/man/journald.conf.html#SystemMaxUse=)


Usage
-----

Example playbook:

````yaml
- name: configure systemd journal
  hosts: all
  roles:
    - role: journald
      vars:
        journald_persistent: no
        journald_forward_to_syslog: yes
````