We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85b210e + 5d618be commit 13d46a2Copy full SHA for 13d46a2
2 files changed
roles/device_roles/linkamt96/tasks/main.yml
@@ -50,6 +50,14 @@
50
state: absent
51
when: linkamt96_pty_service_file.stat.exists
52
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
+
61
- name: Install base.cmd
62
ansible.builtin.template:
63
src: templates/base.cmd.j2
roles/device_roles/linkamt96/templates/logrotate-linkam.j2
@@ -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