Files
infrastructure/roles/l2_interfaces/tasks/main.yml
Accendit 9b4e1ec793
All checks were successful
continuous-integration/drone/push Build is passing
Added a l2_interfaces role
2020-05-11 21:40:31 +02:00

12 lines
329 B
YAML

- 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