ansible-cmdb | Generate host overview from ansible fact gathering output | DevOps library
kandi X-RAY | ansible-cmdb Summary
kandi X-RAY | ansible-cmdb Summary
Ansible-cmdb takes the output of Ansible’s fact gathering and converts it into a static HTML overview page (and other things) containing system configuration information. It supports multiple types of output (html, csv, sql, etc) and extending information gathered by Ansible with custom data. For each host it also shows the groups, host variables, custom variables and machine-local facts.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Write the top level module to the printer
- Write lines
- Write a line to the stream
- Write the inheritance of the given template
- Parse the text
- Decode a raw stream
- Matches the given regular expression
- Match a regular expression
- Parse attributes
- Visitor for class definition
- Parse fact directory
- Parse host_vars directory
- Parse group
- Inherit from a template
- Get a template namespace
- Construct a timestamp from a YAML node
- Visit a control line
- Return a dict of hosts
- Parse command line arguments
- Return a list of all hosts on the host
- Return the argument expressions
- Parse the contents of the hosts section
- Write a render callable
- Compile a module from a file
- Performs an action on the data structure
- Parse group_vars directory
ansible-cmdb Key Features
ansible-cmdb Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-cmdb
QUESTION
I have a repository with Ansible playbooks. In one playbook, gather-installed.yml, I use package_facts_module together with ansible-cmdb. In next following playbook, which I use to install software, I have a variable of type dict defined: packages:
...ANSWER
Answered 2022-Jan-18 at 17:28inject_facts_as_vars currently defaults to true
; while facts from the setup
module are guaranteed to be prefixed with ansible_
, this is not the case for all modules. The fact returned by the package_facts
module does not have this prefix, so it will clobber an existing packages
variable unless this setting is turned off.
Disabling fact injection by default is something the developers plan to do, but they first need to implement a way to trigger a warning when a deprecated variable is used, so that deprecation warnings can be targeted to people who are relying on this functionality. In the meantime, anyone who's not actually using the injected vars is free to disable it and prevent random modules from polluting their top-level variable namespace.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-cmdb
Install Ansible-cmdb from [source, a release package](https://github.com/fboender/ansible-cmdb/releases) or through pip: pip install ansible-cmdb.
Fetch your host’s facts through ansible: $ mkdir out $ ansible -m setup --tree out/ all
Generate the CMDB HTML with Ansible-cmdb: $ ansible-cmdb out/ > overview.html
Open overview.html in your browser.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page