Initial commit, squashed
This commit is contained in:
commit
158e8740b8
83 changed files with 2718 additions and 0 deletions
7
roles/access/tasks/main.yml
Normal file
7
roles/access/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- name: Set configuration
|
||||
ansible.netcommon.cli_config:
|
||||
config: "{{ lookup('template', 'config.j2') }}"
|
||||
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 hybrid|interface .*)$')
|
||||
notify: write config
|
Loading…
Add table
Add a link
Reference in a new issue