syslog: Syslog
https://galaxy.ansible.com/devopstoolbox.syslog
ansible-galaxy install devopstoolbox.syslog
- For RHEL, a Red Hat subscription or functional local repository.
- Ansible 2.4 or higher
syslog_packages_state: present
syslog_remove_packages: true
syslog_enable_service: true
syslog_enable_selinux: true
syslog_copy_templates: true
syslog_firewall_configure: true
syslog_firewall_rules:
- service: ssh
- port: 3389
syslog_users:
- user: devops
group: docker
syslog_selinux_booleans:
- name: ftp_home_dir
state: true
persistent: true
- For Red Hat, subscription-manager.
---
- name: Install syslog on localhost
hosts:
- localhost
connection: local
tasks:
- name: syslog is configured
import_role:
name: devopstoolbox.syslog
vars:
syslog_packages_state: present
syslog_remove_packages: true
syslog_enable_service: true
syslog_enable_selinux: true
syslog_copy_templates: true
syslog_firewall_configure: true
syslog_firewall_rules:
- service: ssh
- port: 3389
syslog_users:
- user: devops
group: docker
syslog_selinux_booleans:
- name: ftp_home_dir
state: true
persistent: true
tags: syslog
MIT