title: Toy example of an Ansible dynamic inventory script?
body: <p>In an attempt to debug my 'proper' script - I've resorted to trying a toy example - and that isn't working either.</p>
  
  <pre><code> echo {\"admin\": \"foo\", \"datacenter\": \"bar\"}
  </code></pre>
  
  <p>Running it directly behaves as expected:</p>
  
  <pre><code>%: ./test_inv --host blah
  {"admin": "foo", "datacenter": "bar"}
  </code></pre>
  
  <p>but:</p>
  
  <pre><code>%: ansible blah -i test_inv
  ERROR: The file test_inv is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this with `chmod -x test_inv`.
  </code></pre>
  
  <p>(I'm assuming that I don't need to support --list for this toy test as I'm never invoking it in that way)</p>