Skip to content

Commit c255aa4

Browse files
phavekespmeulen
authored andcommitted
rsyslog: Add ansible tasks for stepup log parsing
1 parent 0cff50e commit c255aa4

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

roles/rsyslog/tasks/process_auth_logs.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
state: present
4040
when: ansible_os_family == "Debian"
4141

42-
- name: Create a python script that parses log_logins per environment
42+
- name: Create a python script that parses eb log_logins per environment
4343
ansible.builtin.template:
4444
src: parse_ebauth_to_mysql.py.j2
4545
dest: /usr/local/sbin/parse_ebauth_to_mysql_{{ item.name }}.py
@@ -49,7 +49,17 @@
4949
with_items: "{{ rsyslog_environments }}"
5050
when: item.db_loglogins_name is defined
5151

52-
- name: Put log_logins logrotate scripts
52+
- name: Create a python script that parses stepup log_logins per environment
53+
ansible.builtin.template:
54+
src: parse_ebauth_to_mysql.py.j2
55+
dest: /usr/local/sbin/parse_stepupauth_to_mysql_{{ item.name }}.py
56+
mode: 0740
57+
owner: root
58+
group: root
59+
with_items: "{{ rsyslog_environments }}"
60+
when: item.db_loglogins_name is defined
61+
62+
- name: Put log_logins logrotate scripts for eb
5363
ansible.builtin.template:
5464
src: logrotate_ebauth.j2
5565
dest: /etc/logrotate.d/logrotate_ebauth_{{ item.name }}
@@ -59,6 +69,16 @@
5969
with_items: "{{ rsyslog_environments }}"
6070
when: item.db_loglogins_name is defined
6171

72+
- name: Put log_logins logrotate scripts for stepup
73+
ansible.builtin.template:
74+
src: logrotate_ebauth.j2
75+
dest: /etc/logrotate.d/logrotate_stepupauth_{{ item.name }}
76+
mode: 0644
77+
owner: root
78+
group: root
79+
with_items: "{{ rsyslog_environments }}"
80+
when: item.db_loglogins_name is defined
81+
6282
- name: Create logdirectory for log_logins cleanup script
6383
ansible.builtin.file:
6484
path: "{{ rsyslog_dir }}/apps/{{ item.name }}/loglogins_cleanup/"

0 commit comments

Comments
 (0)