From 15ce6493cc1b56a3cbf38b361860206f2698af55 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Tue, 30 Aug 2016 17:20:18 +0200 Subject: [PATCH] fix warning on managed file state for /etc/sudoers.d/username --- users/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/init.sls b/users/init.sls index 5949caf..b8dbf9a 100644 --- a/users/init.sls +++ b/users/init.sls @@ -341,6 +341,7 @@ users_ssh_known_hosts_delete_{{ name }}_{{ loop.index0 }}: users_sudoer-{{ name }}: file.managed: + - replace: False - name: {{ users.sudoers_dir }}/{{ name }} - user: root - group: {{ users.root_group }} @@ -379,6 +380,7 @@ users_sudoer-{{ name }}: users_{{ users.sudoers_dir }}/{{ name }}: file.managed: + - replace: True - name: {{ users.sudoers_dir }}/{{ name }} - contents: | {%- if 'sudo_defaults' in user %}