There are a useful ansible command that gathing the facts and store them, like this,
ansible -m setup --tree out/ all
But how could do it by ansible-playbook -i inventory.ini ? just store the facts but not actually run the playbook and only for diagnosis.
Thanks James.