kayobe/ansible/roles/dell-switch/tasks/main.yml
Mark Goddard 35259800aa switches: add flag to save configuration on Dell switches
Currently only supported on Dell OS9 and OS10 switches, and provides no
CLI integration.

Change-Id: Ia9242ed823868cba3a27fb9344a3b01283528d87
2023-11-01 16:57:03 +00:00

25 lines
760 B
YAML

---
- name: Ensure DellOS6 switches are configured
local_action:
module: dellos6_config
provider: "{{ dell_switch_provider }}"
src: dellos6-config.j2
save: "{{ dell_switch_save | bool }}"
when: dell_switch_type == 'dellos6'
- name: Ensure DellOS9 switches are configured
local_action:
module: dellos9_config
provider: "{{ dell_switch_provider }}"
src: dellos9-config.j2
save: "{{ dell_switch_save | bool }}"
when: dell_switch_type == 'dellos9'
- name: Ensure DellOS10 switches are configured
local_action:
module: dellos10_config
provider: "{{ dell_switch_provider }}"
src: "{{ lookup('template', 'dellos10-config.j2') }}"
save: "{{ dell_switch_save | bool }}"
when: dell_switch_type == 'dellos10'