Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: CSR
- gather_facts: true
- connection: local
- tasks:
- - name: show run
- ios_command:
- commands:
- - show run
- host: "{{ ansible_host }}"
- username: vagrant
- password: vagrant
- register: config
- - name: save output to /etc/ansible/backups
- copy:
- content: "{{ config.stdout[0] }}"
- dest: "/tmp/backups/show_run_{{ inventory_hostname }}.txt"
Add Comment
Please, Sign In to add comment