Add support for Ansible packages
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / remote_scripts / Definitions / remote_scripts.json
index 4649114..80ef02f 100644 (file)
             }
           }
         }
+      },
+      "execute-remote-ansible": {
+        "steps": {
+          "execute-script": {
+            "description": "Execute Remote Ansible Script",
+            "target": "execute-remote-ansible",
+            "activities": [
+              {
+                "call_operation": ""
+              }
+            ]
+          }
+        },
+        "inputs": {},
+        "outputs": {
+          "logs": {
+            "type": "json",
+            "value": {
+              "get_attribute": [
+                "execute-remote-ansible",
+                "execution-logs"
+              ]
+            }
+          }
+        }
       }
     },
     "node_templates": {
             "file": "Scripts/python/SamplePython.py"
           }
         }
+      },
+      "execute-remote-ansible": {
+        "type": "component-remote-python-executor",
+        "interfaces": {
+          "ComponentRemotePythonExecutor": {
+            "operations": {
+              "process": {
+                "implementation": {
+                  "primary": "component-script"
+                },
+                "inputs": {
+                  "command": "ansible-playbook first.yaml",
+                  "packages": [
+                    {
+                      "type": "PYTHON",
+                      "package": [
+                        "ansible"
+                      ]
+                    },
+                    {
+                      "type": "ANSIBLE",
+                      "package": [
+                        "juniper.junos"
+                      ]
+                    }
+                  ]
+                }
+              }
+            }
+          }
+        },
+        "artifacts": {
+          "component-script": {
+            "type": "artifact-script-ansible",
+            "file": "Scripts/ansible/first.yaml"
+          }
+        }
       }
     }
   }