rsyslog: ansible-lint fixes
This commit is contained in:
parent
f85a007b1d
commit
e00dc8ccf1
1 changed files with 12 additions and 12 deletions
|
@ -1,37 +1,37 @@
|
|||
---
|
||||
- name: install packages
|
||||
package:
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
with_items:
|
||||
- rsyslog
|
||||
- rsyslog-gnutls
|
||||
|
||||
- name: configure all.log
|
||||
copy:
|
||||
- name: Configure all.log
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/rsyslog.d/all.log.conf
|
||||
content: "*.* /var/log/all.log\n"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart rsyslog
|
||||
notify: Restart rsyslog
|
||||
|
||||
- name: configure remote logging
|
||||
template:
|
||||
- name: Configure remote logging
|
||||
ansible.builtin.template:
|
||||
dest: /etc/rsyslog.d/remote.conf
|
||||
src: remote.conf.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart rsyslog
|
||||
notify: Restart rsyslog
|
||||
|
||||
- name: enable rsyslog service
|
||||
service:
|
||||
- name: Enable rsyslog service
|
||||
ansible.builtin.service:
|
||||
name: rsyslog
|
||||
state: started
|
||||
|
||||
- name: enable all.log rotation
|
||||
copy:
|
||||
- name: Enable all.log rotation
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/logrotate.d/syslog.all
|
||||
src: logrotate
|
||||
mode: 0644
|
||||
|
|
Loading…
Add table
Reference in a new issue