I am trying to test the filter result using the ansible command in ad-hoc
mode for ec2_vpc_subnet_facts module. I can't seem to get the "filters"
parameter to work in the ad-hoc mode somehow. It keeps giving me back key
value error or "unable to evaluate dictionary for filters" kind of error no
matter how I put those things together.
Here's is how my command looks like:
ansible localhost -i ./local -m ec2_vpc_subnet_facts -a "profile=my-profile
region=us-east-1 filters="{ 'vpc-id': vpc-xxxxx }" -vvvv
And here's the error message:
localhost | FAILED >> {
"failed": true,
"msg": "this module requires key=value arguments (['filters={',
'vpc-id:', 'vpc-xxxxx', '}'])"
}
I have played with many different formatting but I just can't get it to
work.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/76d97a1a-7c20-418c-a1cb-c2a7554c0176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.