Hi,
I am using awxkit command line v13.0.0.
I wonder how to use filtering on variables when listing hosts with “awx hosts list” command.
I tried argument --variables with a yaml/json format without success: it always return an empty set.
trying in YAML format
awx hosts list --variables ‘arch: amd64’
{
“count”: 0,
“next”: null,
“previous”: null,
“results”:
}
trying in JSON format
awx hosts list --variables ‘{“arch”: “amd64”}’
{
“count”: 0,
“next”: null,
“previous”: null,
“results”:
}
However I have at least one host that matches that variable:
awx hosts list
{
“count”: 40,
“next”: “/api/v2/hosts/?page=2”,
“previous”: null,
“results”: [
…
{
“id”: 31,
…
“variables”: “{"arch": "amd64"}”,
…
},
…
]
}
Maybe I am not using the right format for --variables option? Or should I fill a bug report?
Thanks,
Nico