ajout script
This commit is contained in:
parent
b4504cadc6
commit
506f4c5475
24
sio2/sisr2/40-Ansible/syslog.yml
Normal file
24
sio2/sisr2/40-Ansible/syslog.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- hosts: infra
|
||||
tasks:
|
||||
- name: decommente le chargement du module imudp dans rsyslog.conf
|
||||
replace:
|
||||
path: /etc/rsyslog.conf
|
||||
regexp: '^#module\(load="imudp"\)'
|
||||
replace: 'module(load="imudp")'
|
||||
backup: true
|
||||
notify: Restart Rsyslog
|
||||
|
||||
- name: decommente le chargement du module imudp dans rsyslog.conf
|
||||
replace:
|
||||
path: /etc/rsyslog.conf
|
||||
regexp: '^#input\(type="imudp" port="514"\)'
|
||||
replace: 'input(type="imudp" port="514")'
|
||||
backup: true
|
||||
notify: Restart Rsyslog
|
||||
|
||||
handlers:
|
||||
- name: Restart Rsyslog
|
||||
service:
|
||||
name: rsyslog
|
||||
state: restarted
|
Loading…
x
Reference in New Issue
Block a user