Added a l2_interfaces role
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
12
roles/l2_interfaces/tasks/main.yml
Normal file
12
roles/l2_interfaces/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user