Skip to content

Commit

Permalink
Better task to insert maxsize
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Dec 5, 2023
1 parent 317fd15 commit 742336a
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 742336a

Please sign in to comment.