Ansible IOS VRF module Playbook

preview_player
Показать описание
Ansible IOS VRF module Playbook
Cisco IOS VRF config
Ansible IOS VRF module

---
- name: Cisco IOS vrf Config
hosts: cisco
connection: network_cli
gather_facts: false
tasks:
- name: Doing vrf config
ios_vrf:
vrfs: "{{ vrfs }}"
notify: config_done
register: output

handlers:
- name: HANDLER1 show cmds to be sent to device
listen: config_done
debug:

- name: HANDLER2 Save configuration
listen: config_done
ios_config:
save_when: always
Рекомендации по теме