access: enable DHCP snooping on D-Link switches
Use the ifaces_dhcp custom context property to select interfaces where we should expect DHCP replies.
This commit is contained in:
parent
bbf0798d5c
commit
de05fd236b
2 changed files with 13 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
ansible_terminal_stderr_re: [] # some errors are not actually errors
|
||||
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|no voice vlan.*|switchport mode access|switchport mode hybrid|interface .*|no enable service web-server https?)$')
|
||||
changed_when: result.commands | reject('match', '^(no shutdown|no switchport access vlan|no voice vlan.*|switchport mode access|switchport mode hybrid|interface .*|no enable service web-server https?|no ip dhcp snooping|no ip dhcp snooping trust)$')
|
||||
notify: write config
|
||||
|
||||
- name: Run model-specific tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue