Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sky-joker/ansible-vmware-vm-inventory-report-generator
This playbook generates VMware VM inventory report
https://github.com/sky-joker/ansible-vmware-vm-inventory-report-generator
ansible vmware
Last synced: about 1 month ago
JSON representation
This playbook generates VMware VM inventory report
- Host: GitHub
- URL: https://github.com/sky-joker/ansible-vmware-vm-inventory-report-generator
- Owner: sky-joker
- License: mit
- Created: 2019-10-06T09:25:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T12:29:16.000Z (over 5 years ago)
- Last Synced: 2024-04-16T00:14:08.970Z (9 months ago)
- Topics: ansible, vmware
- Language: HTML
- Homepage:
- Size: 86.9 KB
- Stars: 16
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![](https://github.com/sky-joker/ansible-vmware-vm-inventory-report-generator/workflows/VM%20Inventory%20Report%20Generator%20Test/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# Ansible VMware VM Inventory Report Generator
![](images/vm_inventory_report.png)
This playbook can generate VMware VM inventory report.
## Install
Clone this repository and install ansible and the required python modules.
```
$ git clone https://github.com/sky-joker/ansible-vmware-vm-inventory-report-generator
$ cd ansible-vmware-vm-inventory-report-generator
$ pip install -r requirements.txt
```## Usage
### Change auth variable
Please change the following variables.
```
$ vi ansible-vmware-vm-inventory-generator.yml
``````yaml
---
- name: VMware VM Inventory Generator
hosts: localhost
gather_facts: no
vars:
hostname: vCenter IP # please change to ip or hostname for vCenter Server
username: [email protected] # please change to vCenter Server login user name
password: password # please change to vCenter Server login password
export_type: html # please choices['html', 'csv']
tasks:
- name: Gather fact for all vm
(snip)
```### Running the Playbook
Run playbook using ansible-playbook command.
```
$ ansible-playbook ansible-vmware-vm-inventory-generator.yml
[WARNING]: No inventory was parsed, only implicit localhost is available[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VMware VM Inventory Generator] ********************************************************************************************************************************
TASK [Gather fact for all vm] ***************************************************************************************************************************************
ok: [localhost]TASK [Gather facts for vm summary] **********************************************************************************************************************************
ok: [localhost] => (item=molecule01)
ok: [localhost] => (item=AD01)
ok: [localhost] => (item=awx)
(snip)
```## License
MIT
## Author Information
This playbook was created by [sky-joker](https://github.com/sky-joker).