Comments (7)
Hey Dale,
I have confirmed this bug. I'll have to give some thought to a good solution. Thank you for reporting it and I'll try to have a solution as soon as possible.
Regards
Ferry
from ansible-cmdb.
Hey Dale,
I can't find in the Ansible documentation where it says this is allowed in hosts files. It seems fine for playbooks and variable files (http://docs.ansible.com/ansible/intro_inventory.html#splitting-out-host-and-group-specific-data), but it doesn't seem to be allowed officially in hosts files?
from ansible-cmdb.
It seems this is explicitly not allowed / discouraged in the manual:
If you need to store lists or hash data, or prefer to keep host and group specific variables separate from the inventory file, see the next section.
The next section is http://docs.ansible.com/ansible/intro_inventory.html#splitting-out-host-and-group-specific-data
Perhaps it works right now in Ansible, but I am apprehensive about adding support for undocumented features. Especially since it would require rewriting a large part of the hosts file parsing code ;-)
I suggest you split the variables out in separate files as suggested by the manual.
from ansible-cmdb.
I hear what you are saying, but FWIW This format comes from https://github.com/openshift/openshift-ansible which is from RH who are the new Ansible benefactors.
from ansible-cmdb.
You're right, and it does seem to work. I'll re-open this issue and take another look to see if ansible-cmdb can support this.
from ansible-cmdb.
Hey Dale!
I've committed a fix that implements support for this. I had to make some guesses about how it's supposed to work, since it's not really documented.
Thank you for reporting the bug!
Regards
from ansible-cmdb.
Thanks for accommodating it. Cheers!
from ansible-cmdb.
Related Issues (20)
- CSV template - rendering error after custom facts added HOT 11
- RFE: Provide ability to prune some variables from host/group vars
- Is it possible to add additional & custom columns to the CSV template? HOT 2
- Comments must be stripped before calling shlex.split
- ModuleNotFoundError: No module named 'ansiblecmdb' HOT 2
- New column: public IP address HOT 1
- [html_fancy_split] Unable to sort custom column by mixed type "string"/ "num" AND how to custom template html_fancy_split HOT 9
- CSV import feature to manage inventory and host_vars easily HOT 1
- CSV export feature for easy reporting HOT 2
- kernel info to txt_table.tpl
- Ansible Tower Generated Json Output unable to generate report HOT 1
- No suitable python version found (v2.7 or higher required). Aborting HOT 4
- Template html fancy split is broken with Edge when excluding columns HOT 1
- Debian 11 can't use default template with ansible-cmdb 1.31 HOT 3
- F
- Markdown split doesn't work
- Does not get built with python-packaging 23.0
- [Question] Offline js libraries
- Using facts_cache for esx hosts is not working properly HOT 1
- Custom fact using command output HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-cmdb.