Thanks for your insights @Jordan,
still I wasn't able to reproduce the structure to work when debugging PS
modules outside of ansible. I came up with a solution about using
Export-Clixml, this is about executing the desired parameters and dumping
them to disk as a PS xml object.
After all it c
Yaml is easily converted to some sort of structure, you are mostly dealing
with dicts or lists, so in your case you can set complex_args to;
$complex_args = @{
add_children = @(
@{
name = "Ansible Brew"
type = "light"
}
)
}
As you can see we are se