The data is not reflecting properly in html page #244
Unanswered
pgmodusbox
asked this question in
Q&A
Replies: 1 comment
-
@pgmodusbox I really hope you were able to solve this issue somehow but regarding how only specific buttons can be shown in the HTML Page, you can modify the content of the /usr/local/lib/ansiblecmdb/data/tpl/html_fancy_defs.html template file that is used for generating such pages. By default, you will see the following content in this file:
You can remove any of the buttons by simply deleting the line they are mentioned in or by simply replacing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I have used the ansible-cmdb following steps:
ansible -i hosts -m setup --tree out/ all --ssh-common-args='-o StrictHostKeyChecking=no' -a "filter=ansible_hostname*,ansible_nodename*,ansible_machine*,ansible_memory_mb*,ansible_memfree_mb*,ansible_memtotal_mb*,ansible_uptime_seconds*,ansible_all_ipv4_*"
And it's giving data :
But in my html dashboard it's showing:
`- hosts: localhost
remote_user: pankajgupta
become: yes
become_method: sudo
tasks:
var: ansible_facts["all_ipv6_addresses"]|type_debug
var: ansible_facts["memory_mb"]|type_debug
var: ansible_facts["machine"]|type_debug
var: ansible_facts["memfree_mb"]|type_debug
var: ansible_facts["memtotal_mb"]|type_debug
var: ansible_facts["nodename"]|type_debug
var: ansible_facts["all_ipv4_addresses"]|type_debug
var: ansible_facts["hostname"]|type_debug
var: ansible_facts["uptime_seconds"]|type_debug`
Then how can I generate an html file with this ansible-playbook output ?
It would be really great if you can assist me please. thanks a lot !!
Beta Was this translation helpful? Give feedback.
All reactions