main.yml
644 Bytes
---
# tasks file for java-rsyslog
- name: ensure packages are installed
package: name="{{ item }}" state=present
with_items: "{{ rsyslog_packages }}"
- name: sync rsyslog main config file
template:
src: rsyslog.conf.j2
dest: /etc/rsyslog.conf
notify:
- reload rsyslog
- name: define docker modules
set_fact:
docker_modules:
- yohonow-platform
- yohomars-platform
- yohomars-search
- yohonow
- yohomars
- name: sync module rsyslog config files
template:
src: rsyslog.module.conf.j2
dest: "/etc/rsyslog.d/rsyslog.{{rsyslog_module}}.conf"
notify:
- reload rsyslog