blob: 908b89f9ae346a3f422f5ca5e8aa5b016e200a9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
- name: Network Getting Started First Playbook
connection: ansible.netcommon.network_cli
gather_facts: false
hosts: all
tasks:
- name: Get config for VyOS devices
vyos.vyos.vyos_facts:
gather_subset: all
- name: Display the config
debug:
msg: "The hostname is {{ ansible_net_hostname }} and the OS is {{ ansible_net_version }}"
|