From a823b97c045ef877ef855e48e0461dddc66bacb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 23 Apr 2018 11:46:01 +0200 Subject: [PATCH] Fix configuration file permissions --- tasks/main.yml | 5 ++++- templates/etc/arpwatch.conf.j2 | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 050774a..9f5c18b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,10 +14,13 @@ when: arpwatch__enabled|bool # Manage configuration file [[[1 -- name: Configure Arpwatch +- name: Create Arpwatch configuration template: src: '{{ arpwatch__conf_src }}' dest: "/etc/arpwatch.conf" + owner: root + group: root + mode: '0644' when: arpwatch__enabled|bool notify: ['restart arpwatch service'] diff --git a/templates/etc/arpwatch.conf.j2 b/templates/etc/arpwatch.conf.j2 index 07bdbcf..740a0e0 100644 --- a/templates/etc/arpwatch.conf.j2 +++ b/templates/etc/arpwatch.conf.j2 @@ -1,3 +1,5 @@ +## {{ ansible_managed }} + # /etc/arpwatch.conf: Debian-specific way to watch multiple interfaces. # Format of this configuration file is: #