journald.yml 457 B

1234567891011121314
  1. ---
  2. - name: ensure journal directory exists
  3. file: path=/var/log/journal state=directory group=systemd-journal mode=2755
  4. notify: restart journald
  5. when: "'supernodes' not in group_names"
  6. - name: ensure journal directory is absent
  7. file: path=/var/log/journal state=absent
  8. notify: restart journald
  9. when: "'supernodes' in group_names"
  10. - name: ensure rsyslog is not installed
  11. apt: name=rsyslog state=absent purge=yes
  12. notify: remove syslog files