17 lines
471 B
Bash
Executable File
17 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ANSIBLE_DIR=/etc/ansible
|
|
OUTPUT=/var/www/def/public/facts.html
|
|
|
|
rm $ANSIBLE_DIR/gathered_facts/*
|
|
ansible '!off,linux,windows' -m setup -f 5 --task-timeout 30 --tree $ANSIBLE_DIR/gathered_facts >/dev/null
|
|
|
|
INV=""
|
|
if [[ -r $ANSIBLE_DIR/cmdb-inventory ]]; then
|
|
INV="-i $ANSIBLE_DIR/cmdb-inventory"
|
|
fi
|
|
|
|
/usr/local/bin/ansible-cmdb $INV -t html_fancy_split_overview $ANSIBLE_DIR/gathered_facts > $OUTPUT
|
|
|
|
# vim: set tabstop=4 shiftwidth=4 expandtab smarttab:
|