Added a l2_interfaces role
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Accendit
2020-05-11 21:40:31 +02:00
parent 18acc18cad
commit 9b4e1ec793

View File

@ -0,0 +1,12 @@
- debug:
msg: "{{ hostvars[inventory_hostname]['l2_interfaces'] }}"
- name: configure vlans
ios_vlans:
config: "{{ hostvars[inventory_hostname]['vlans'] }}"
state: overridden
- name: configure switchports
ios_l2_interfaces:
config: "{{ hostvars[inventory_hostname]['l2_interfaces'] }}"
state: overridden