From be0cc49b339eb343f80750833c4ca0fa9f3144dd Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 4 Mar 2024 10:12:38 +0100 Subject: [PATCH] =?UTF-8?q?access:=20ignore=20more=20non=E2=80=90changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should probably move this somewhere more listy if it keeps growing. --- roles/access/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/access/tasks/main.yml b/roles/access/tasks/main.yml index 728016f..538474c 100644 --- a/roles/access/tasks/main.yml +++ b/roles/access/tasks/main.yml @@ -17,5 +17,5 @@ config: '{{ config.json.content }}' register: result # These lines are not displayed by 'sho ru' and always reported as different, so ignore them. - changed_when: result.commands | reject('match', '^(no shutdown|no switchport access vlan|switchport mode access|switchport mode hybrid|interface .*)$') + changed_when: result.commands | reject('match', '^(no shutdown|no switchport access vlan|switchport mode access|switchport mode hybrid|interface .*|no enable service web-server https?)$') notify: write config