From a64bf8977744d9c8e063a937e8b6e40cc2a1058e Mon Sep 17 00:00:00 2001 From: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com> Date: Sat, 20 Feb 2021 21:14:26 +0300 Subject: [PATCH] fix(sudoers/included): fix idempotence with purge_includedir=True --- sudoers/included.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sudoers/included.sls b/sudoers/included.sls index 3f79e53..97e8215 100644 --- a/sudoers/included.sls +++ b/sudoers/included.sls @@ -38,5 +38,7 @@ sudoers include {{ included_file }}: {% if sudoers.manage_main_config %} - require: - file: {{ sudoers.configpath }}/sudoers + - require_in: + - file: {{ sudoers.includedir }} {% endif %} {% endfor %}