Skip to content

Commit

Permalink
Add help instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrav committed Jul 8, 2023
1 parent b693888 commit f0f9b6a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# ansible-inventory-diagram

Script for generating infrastructure graphs from Ansible diagrams files
Script for generating infrastructure diagrams from Ansible inventory files

![Example diagram](./ansible_inventory_diagram.png)

Expand Down Expand Up @@ -32,6 +32,35 @@ Once you have an outputted JSON inventory file you can run the script:
python3 diagram/main.py
```

For instructions run

```bash
python3 diagram/main.py -h
```

You will see the following

```text
usage: ansible-inventory-diagram [-h] [-i INVENTORY]
[-o {png,jpg,svg,pdf,dot}] [-n NAME]
[-f FILENAME] [-s]
Script for generating infrastructure diagrams from Ansible inventory files
options:
-h, --help show this help message and exit
-i INVENTORY, --inventory INVENTORY
Path to Ansible JSON inventory file
-o {png,jpg,svg,pdf,dot}, --outformat {png,jpg,svg,pdf,dot}
Format of the output format
-n NAME, --name NAME Name of the diagram
-f FILENAME, --filename FILENAME
Name of file to output
-s, --show Show file after generation using the default program
2023 - mbrav https://github.com/mbrav/ansible-inventory-diagram
```

## Installation

Clone repo
Expand Down

0 comments on commit f0f9b6a

Please sign in to comment.