feat: initial commit

This commit is contained in:
Simon Cornet 2025-05-06 10:58:34 +02:00
commit 0c58302da5
20 changed files with 326 additions and 0 deletions

41
tasks/config.yaml Normal file
View file

@ -0,0 +1,41 @@
---
# configure rsyslog
- name: "config - rsyslog"
ansible.builtin.template:
src: "templates/rsylog/incoming-udp514.conf.j2"
dest: "/etc/rsyslog.d/incoming-udp514.conf"
owner: "root"
group: "root"
mode: "0644"
notify: "restart rsyslog"
# configure logrotate
- name: "config - logrotate"
ansible.builtin.template:
src: "templates/logrotate/remote-tmpfs.j2"
dest: "/etc/logrotate.d/remote-tmpfs.conf"
owner: "root"
group: "root"
mode: "0644"
notify: "restart rsyslog"
# configure splunk universal forwarder - input
- name: "config - splunk universal forwarder - input"
ansible.builtin.template:
src: "templates/splunkforwarder/inputs.conf.j2"
dest: "/opt/splunkforwarder/etc/system/local/inputs.conf"
owner: "splunkfwd"
group: "splunkfwd"
mode: "0644"
notify: "restart splunk"
# configure splunk universal forwarder - outputs
- name: "config - splunk universal forwarder - outputs"
ansible.builtin.template:
src: "templates/splunkforwarder/outputs.conf.j2"
dest: "/opt/splunkforwarder/etc/system/local/outputs.conf"
owner: "splunkfwd"
group: "splunkfwd"
mode: "0644"
notify: "restart splunk"