Re: [ansible-project] Error while Trying to run a dynamic inventory script from ldap source,

2020-10-16 Thread sk32...@gmail.com
configured properly, Any help would be great. Thanks. On Wednesday, October 14, 2020 at 5:54:52 AM UTC-4 prajwal...@gmail.com wrote: > Try to run with the sudo command > > On Wed, 14 Oct, 2020, 2:51 pm sk32...@gmail.com, > wrote: > >> yep I did chmod a+x get_branch.py

Re: [ansible-project] Error while Trying to run a dynamic inventory script from ldap source,

2020-10-14 Thread sk32...@gmail.com
Oct 2020 at 11:04, sk32...@gmail.com wrote: > > > > It starts with a shebang, and it is parsing a .ini config file, below is > the code, > > > > #!/usr/bin/env python3 > > > > import os > > import sys > > import argparse > > import

Re: [ansible-project] Error while Trying to run a dynamic inventory script from ldap source,

2020-10-14 Thread sk32...@gmail.com
;: {} }, "all": { "children": [ "ungrouped" ] } } On Wednesday, October 14, 2020 at 5:04:20 AM UTC-4 sk32...@gmail.com wrote: > It starts with a shebang, and it is parsing a .ini config file, below is > the code, >

Re: [ansible-project] Error while Trying to run a dynamic inventory script from ldap source,

2020-10-14 Thread sk32...@gmail.com
, not just host name', default=False, action='store_true') parser.add_argument('--os','-os', help='Only return hosts matching the OS specified (Uses ldap formatting, so \'*windows*\').', default=False) parser.add_argument('--group-pre

[ansible-project] Error while Trying to run a dynamic inventory script from ldap source,

2020-10-14 Thread sk32...@gmail.com
when I run the script with python on command line, I get the json output, however when I run it with ansible-inventory or ansible-playbook I hit the following error ansible-inventory 2.9.6 config file = /Users/sm/ansible_liquibase/ansible.cfg configured module search path = ['/Users/sm/.ans

[ansible-project] ansible secret has a special character ':' (colon) at the end how to deal with special characters in asnible-vault/secrets ?

2020-10-12 Thread sk32...@gmail.com
Exception : "yaml.scanner.ScannerError: mapping values are not allowed here in "", line 1, column 22: ldappass: ***: -- 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,