From c99312a594dfb203d3472aafb30f4ae3bbbae6eb Mon Sep 17 00:00:00 2001
From: bmzsombi <bmzsombi@sch.bme.hu>
Date: Wed, 24 May 2023 19:31:31 +0200
Subject: [PATCH] First plays

---
 hosts.yaml |  7 +++++++
 test.yaml  | 15 +++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 hosts.yaml
 create mode 100644 test.yaml

diff --git a/hosts.yaml b/hosts.yaml
new file mode 100644
index 0000000..376c4ab
--- /dev/null
+++ b/hosts.yaml
@@ -0,0 +1,7 @@
+[routers]
+router1 int_ip=10.10.20.100
+
+[routers:vars]
+ansible_become=yes
+ansible_become_method=enable
+ansible_network_os=cisco.ios.ios
\ No newline at end of file
diff --git a/test.yaml b/test.yaml
new file mode 100644
index 0000000..c6faf25
--- /dev/null
+++ b/test.yaml
@@ -0,0 +1,15 @@
+---
+- name: Test
+  hosts: routers
+  gather_facts: no
+  connection: network_cli
+  tasks:
+    - name: Show int info
+      cisco.ios.ios_command:
+        commands: show ip route vrf Mgmt-intf
+      register: interfaces_info
+
+    - name: Print output
+      copy:
+        content: "{{interfaces_info.stdout[0]}}"
+        dest: ~/onlab/{{inventory_hostname}}.txt
\ No newline at end of file
-- 
GitLab