Skip to content

Commit 13d46a2

Browse files
authored
Merge pull request #208 from sligara7/linkamt96-logrotate
add logrotate config for linkamt96 SDK log
2 parents 85b210e + 5d618be commit 13d46a2

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

roles/device_roles/linkamt96/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
state: absent
5151
when: linkamt96_pty_service_file.stat.exists
5252

53+
- name: Deploy logrotate config for Linkam SDK log
54+
ansible.builtin.template:
55+
src: templates/logrotate-linkam.j2
56+
dest: "/etc/logrotate.d/linkam-{{ deploy_ioc_ioc_name }}"
57+
mode: "0644"
58+
owner: root
59+
group: root
60+
5361
- name: Install base.cmd
5462
ansible.builtin.template:
5563
src: templates/base.cmd.j2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ ioc.environment.LINKAM3_LOG_PATH }} {
2+
size 100M
3+
rotate 3
4+
compress
5+
delaycompress
6+
missingok
7+
notifempty
8+
copytruncate
9+
}

0 commit comments

Comments
 (0)