Skip to content

Instantly share code, notes, and snippets.

@jramnani
Created September 19, 2016 20:44
Show Gist options
  • Save jramnani/1061a84d07379e52d14677a4d46c3a4d to your computer and use it in GitHub Desktop.
Save jramnani/1061a84d07379e52d14677a4d46c3a4d to your computer and use it in GitHub Desktop.
Trying to point to a dynamic inventory script from within a project-local config file.
$ ansible --version
ansible 2.1.1.0
config file = /Users/jramnani/path/to/ansible-playbooks/ansible.cfg
configured module search path = Default w/o overrides
$ cat ansible.cfg
[default]
inventory=./inventory/ec2.py
@jramnani
Copy link
Author

And the winner is...? The section name was wrong in ansible.cfg. The section should be named [defaults] not [default]. Note the plural.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment