This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

How to pass variable in ansible.playbook

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() %>

Hi @mksindri.

It looks like your workflow properties file in the actions folder is incorrect. Can you share that file here, using the Preformatted text button?