Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tasks:
- - name: Define Provider
- set_fact:
- cli:
- host: "{{ ansible_host }}"
- username: "{{ username }}"
- password: "{{ pass }}"
- - name: Gather facts
- register: iosfacts_out
- ios_facts:
- gather_subset:
- - "!config"
- provider: "{{ cli }}"
- - copy: content="{{ iosfacts_out | to_nice_yaml }}" dest="~/ansiblecz/facts/{{ inventory_hostname }}_iosfacts.yml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement