chmod +x host.py
Ansible uses the executable flag to determine whether or not a file is a
.ini or script.
On Wed, Jun 11, 2014 at 11:21 AM, Pierre Masci wrote:
> Hi,
>
> I'm trying to get the simplest *Dynamic Inventory* to work, but it
> doesn't work because *Ansible interprets it as .ini* :
Hi,
I'm trying to get the simplest *Dynamic Inventory* to work, but it doesn't
work because *Ansible interprets it as .ini* :
$ ansible-playbook -i hosts.py play.yml
ERROR: *Invalid ini entry*: sys - need more than 1 value to unpack
Here is the code in *host.py*:
import sys
if len(sy