Ansible IOS Config with backup playbook

preview_player
Показать описание
Ansible IOS Config with the backup playbook
Cisco IOS config from file with variables
backup of running-config
saving in file

other options

---
- name: IOS Example
hosts: cisco
vars:
creds:
host: "{{ ansible_host }}"
username: "{{ ansible_username }}"
password: "{{ ansible_password }}"

tasks:
- ios_config:
provider: "{{ creds }}"
backup: yes
backup_options:
dir_path: /home/vikasvsnl
Рекомендации по теме