(S) Ansible IOS command

Ansible IOS command


---
- name: Get ARP information
  hosts: all
  gather_facts: false

  tasks:
    - name: show arp
      raw: "show arp"

      register: print_output

    - debug: var=print_output.stdout_lines
    - name: save output to a file
      copy: content="{{ print_output.stdout[0] }}" dest="./output/{{ inventory_hostname }}.txt" 
PDFPRINT

Robert T Kucharski

Cisco Network Engineer in GPW.

Dodaj komentarz