Merge "Add support for Ansible packages"
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / remote_scripts / Scripts / ansible / first.yaml
diff --git a/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Scripts/ansible/first.yaml b/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Scripts/ansible/first.yaml
new file mode 100644 (file)
index 0000000..78d292e
--- /dev/null
@@ -0,0 +1,22 @@
+---
+- name: Get Device Facts
+  hosts: dc1
+  roles:
+    - juniper.junos
+  connection: local
+  gather_facts: no
+
+  tasks:
+    - name: Checking NETCONF connectivity
+      wait_for: 
+        host: "{{ inventory_hostname }}"
+        port: 830 
+        timeout: 5
+
+    - name: Retrieving information from devices running Junos OS
+      juniper_junos_facts:
+        host: "{{ inventory_hostname }}"
+
+    - name: Print version
+      debug:
+        var: junos.version
\ No newline at end of file