igor_nikiforov.journald

Ansible Role: Journald

This role sets up Journald settings on your Linux system.

Requirements

This role has been made and tested with the following Ansible versions:

Name Version
ansible >= 2.9.7

Other versions of Ansible might work but haven't been tested.

Installation

To install the latest stable version of this role, run:

ansible-galaxy install igor_nikiforov.journald

You can also install it from a requirements file using:

ansible-galaxy install -r requirements.yml

Example requirements.yml file:

# requirements.yml
---
roles:
  - name: igor_nikiforov.journald
    version: v1.0.0

Usage

This role allows you to configure all Journald parameters. For a full list of possible parameters, visit: https://www.freedesktop.org/software/systemd/man/journald.conf.html.

Examples

Here's an example playbook:

# playbook.yml
---
- hosts: all
  become: true
  gather_facts: false

  pre_tasks:
    - wait_for_connection: { timeout: 300 }
    - setup:

  vars:
    journald_config:
      Compress: yes
      ForwardToConsole: no
      ForwardToSyslog: no
      MaxRetentionSec: 1month
      RateLimitBurst: 10000
      RateLimitIntervalSec: 30s
      Storage: persistent
      SyncIntervalSec: 1s
      SystemMaxUse: 8g
      SystemKeepFree: 20%
      SystemMaxFileSize: 10M

  tasks:
    - name: Configure journald parameters
      import_role:
        name: journald

License

MIT License

Author Information

Created by Igor Nikiforov

Informazioni sul progetto

Configures journald

Installa
ansible-galaxy install igor_nikiforov.journald
Licenza
Unknown
Download
1M
Proprietario