aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/journald/tasks/main.yml
blob: 9b0317b664a8e32e752d428806fda89aaed20752 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                        
                                         


                   







                                      
- name: Less noisy journal
  become: true
  block:
    - name: Edit journald.conf
      community.general.ini_file:
        dest: /etc/systemd/journald.conf
        section: Journal
        option: MaxLevelStore
        value: '{{ journald_log_level }}'
        owner: root
        group: root
        mode: '644'
      register: edited

    - name: Restart systemd-journald
      ansible.builtin.systemd_service:
        daemon_reload: true
        name: systemd-journald
        state: restarted
      when: edited.changed