access: ignore more non‐changes

Should probably move this somewhere more listy if it keeps growing.
This commit is contained in:
Timotej Lazar 2024-03-04 10:12:38 +01:00
parent dbc00fd448
commit be0cc49b33

View file

@ -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