Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check_SSH.yaml
- ---
- - name: RouterOS test with network_cli connection
- hosts: routers
- gather_facts: false
- tasks:
- - name: Gather system resources
- community.routeros.command:
- commands:
- - /system resource print
- register: system_resource_print
- - name: Show system resources
- debug:
- var: system_resource_print.stdout_lines
- - name: Gather facts
- community.routeros.facts:
- - name: Show a fact
- debug:
- msg: "First IP address: {{ ansible_net_all_ipv4_addresses[0] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement