From 8d87fae6a87ada9e3c1b5edc7d0bcf7944efebec Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 30 Nov 2021 15:39:28 -0500 Subject: [PATCH] Remove airgap repo file if it shouldn't exist --- salt/repo/client/init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/repo/client/init.sls b/salt/repo/client/init.sls index f6fbdb6f3..a32287332 100644 --- a/salt/repo/client/init.sls +++ b/salt/repo/client/init.sls @@ -65,6 +65,10 @@ yumconf: - mode: 644 - template: jinja - show_changes: False + +cleanairgap: + file.absent: + - name: /etc/yum.repos.d/airgap_repo.repo {% endif %} cleanyum: