Forráskód Böngészése

Disable persistant systemd journal for supernodes

Markus Lindenberg 7 éve
szülő
commit
cfcd4c8588
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      roles/common-system/tasks/journald.yml

+ 6 - 0
roles/common-system/tasks/journald.yml

@@ -2,6 +2,12 @@
 - name: ensure journal directory exists
   file: path=/var/log/journal state=directory group=systemd-journal mode=2755
   notify: restart journald
+  when: "'supernodes' not in group_names"
+
+- name: ensure journal directory is absent
+  file: path=/var/log/journal state=absent
+  notify: restart journald
+  when: "'supernodes' in group_names"
 
 - name: ensure rsyslog is not installed
   apt: name=rsyslog state=absent purge=yes