access: add voice VLAN support
This commit is contained in:
parent
c3ff39fe72
commit
3caea81896
2 changed files with 20 additions and 1 deletions
|
@ -5,7 +5,10 @@
|
|||
- name: Set configuration
|
||||
ansible.netcommon.cli_config:
|
||||
config: '{{ lookup("template", "config-"~manufacturer~"-"~device_type~".j2") }}'
|
||||
vars:
|
||||
ansible_command_timeout: 60
|
||||
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|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?)$')
|
||||
notify: write config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue