From 3d59bce05188f926f76732c2e76ceadec61b38c5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 16 Jul 2019 21:56:42 +0300 Subject: [PATCH] Feat(debian-logcheck): Add a playbook to update logcheck ignore files --- playbooks/debian-logcheck.yml | 5 +++++ playbooks/roles/debian-logcheck/README.txt | 1 + playbooks/roles/debian-logcheck/files/.gitignore | 2 ++ playbooks/roles/debian-logcheck/tasks/main.yml | 9 +++++++++ 4 files changed, 17 insertions(+) create mode 100644 playbooks/debian-logcheck.yml create mode 100644 playbooks/roles/debian-logcheck/README.txt create mode 100644 playbooks/roles/debian-logcheck/files/.gitignore create mode 100644 playbooks/roles/debian-logcheck/tasks/main.yml diff --git a/playbooks/debian-logcheck.yml b/playbooks/debian-logcheck.yml new file mode 100644 index 0000000..1311f45 --- /dev/null +++ b/playbooks/debian-logcheck.yml @@ -0,0 +1,5 @@ +- name: Update logcheck ignore patterns + hosts: "{{ hosts | default('all') }}" + gather_facts: false + roles: + - debian-logcheck diff --git a/playbooks/roles/debian-logcheck/README.txt b/playbooks/roles/debian-logcheck/README.txt new file mode 100644 index 0000000..670499d --- /dev/null +++ b/playbooks/roles/debian-logcheck/README.txt @@ -0,0 +1 @@ +Update logcheck ignore patterns. diff --git a/playbooks/roles/debian-logcheck/files/.gitignore b/playbooks/roles/debian-logcheck/files/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/playbooks/roles/debian-logcheck/files/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/playbooks/roles/debian-logcheck/tasks/main.yml b/playbooks/roles/debian-logcheck/tasks/main.yml new file mode 100644 index 0000000..1aa03f4 --- /dev/null +++ b/playbooks/roles/debian-logcheck/tasks/main.yml @@ -0,0 +1,9 @@ +- name: Update logcheck ignore patterns + become: true + copy: + src: ignore.d/ + dest: "{{ item }}" + owner: root + group: logcheck + mode: 0640 + loop: ['/etc/logcheck/ignore.d.server', '/etc/logcheck/ignore.d.workstation'] -- 2.39.5