Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
20 lines
544 B
YAML
20 lines
544 B
YAML
---
|
|
|
|
- name: log2mail config is present
|
|
ansible.builtin.blockinfile:
|
|
dest: /etc/log2mail/config/redis.conf
|
|
owner: log2mail
|
|
group: adm
|
|
mode: "0640"
|
|
create: yes
|
|
marker: "# {mark} ANSIBLE MANAGED RULES FOR INSTANCE {{ redis_instance_name }}"
|
|
block: |
|
|
file = {{ redis_log_dir }}/redis-server.log
|
|
pattern = "Cannot allocate memory"
|
|
mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}
|
|
template = /etc/log2mail/mail
|
|
notify: restart log2mail
|
|
tags:
|
|
- redis
|
|
- log2mail
|