I am running ansible into stackstorm. My workflow is working when i will comment the inputs that is ip, username and password. That means It is not excepting ip, username and password as input, So please suggest me any other way to pass input to playbook.
HERE is the code error message:
result:
errors:
- message: Action “ansible.playbook” has unexpected input “ip”.
schema_path: properties.tasks.patternProperties.^\w+.properties.input.patternProperties.^\w+
spec_path: tasks.task1.input.ip
type: content
output: null
Here is my workflow code:
version: “1.0”
description: “A domain controller workflow that demonstrates disk space and compress log files.”
input:
- ip
- username
- password
tasks:
check_vm_status:
action: ntt_windows_domain_controllers.check_disk_space
input:
ip: <% ctx().ip %>
username: <% ctx().username %>
password: <% ctx().password %>
next:
- when: <% succeeded() %>
publish:
- stdout: <% result() %>
- when: <% failed() %>
publish:
- stdout: <% result() %>