Ansible EC2 dynamic inventory - tag containing a hyphen
<p>I'm trying to run an ad-hoc <code>ansible</code> command on hosts that have been tagged as <code>Name = foo-bar</code> (notice the hyphen). When I run:</p>

<p><code>ansible tag_Name_foo_bar -i ec2.py -m ping</code></p>

<p>I get: <code>No hosts matched</code></p>

<p>However, there is such a host. If I run the same command against a host that is tagged with a name not containing a hyphen, it works fine, e.g for a host that is tagged <code>Name = foobar</code>, the following works:</p>

<p><code>ansible tag_Name_foobar -i ec2.py -m ping</code></p>

<p>H</p>