Hi, I might need some guidance :slightly_smiling_f...
# choria
d
Hi, I might need some guidance 🙂, I want to run the exec::linux task and it is working when I do it like below but I feel like there is some better way that I don't know if 😄
Copy code
plan playbooks::first(
  Array[String] $nodes,
  String $command
) {
  $results = choria::run_playbook("choria::tasks::run",
    "nodes" => $nodes,
    "task" => "exec::linux",
    "silent" => true,
    "inputs" => {
      "command" => $command
    }
  )
Also when I do
Copy code
choria::task("shell",
  "command" => "uptime",
  "nodes" => $nodes,
it throws error that "uptime --nodes" command is not available instead of targeting nodes