Skip to content

Commit

Permalink
Merge pull request #602 from iotaledger/fix/featurenet-maxlogs
Browse files Browse the repository at this point in the history
Avoid filling feature network disks with logs
  • Loading branch information
karimodm authored Dec 5, 2023
2 parents 85a1029 + 742336a commit 923faec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/ansible/roles/iota-core-node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
poll: 5

- name: Set log rotation for a maximum size of 5GB
lineinfile:
blockinfile:
path: /etc/logrotate.d/rsyslog
regexp: '^\{\n\s*rotate'
insertbefore: '^\{\n\s*rotate'
line: ' maxsize 5G'
notify: restart rsyslog
block: maxsize 5G
marker: "# {mark} ANSIBLE MANAGED BLOCK"
insertafter: "{\n"
state: present

- name: Create node directory
file:
Expand Down

0 comments on commit 923faec

Please sign in to comment.