Add extra requirements.txt ref to the Docs
Signed-off-by: Armin Teimouri <arminteymuri@gmail.com>pull/11497/head
parent
c4338687e1
commit
b04581a985
|
@ -27,6 +27,7 @@ then run the following steps:
|
||||||
cp -rfp inventory/sample inventory/mycluster
|
cp -rfp inventory/sample inventory/mycluster
|
||||||
|
|
||||||
# Update Ansible inventory file with inventory builder
|
# Update Ansible inventory file with inventory builder
|
||||||
|
# Basides root ``requirements.txt`` , ``inventory builder`` requires some extra Python Packages: ``contrib/inventory_builder/requirements.txt``
|
||||||
declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
|
declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
|
||||||
CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]}
|
CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]}
|
||||||
|
|
||||||
|
|
|
@ -205,6 +205,10 @@ playbook:
|
||||||
```ShellSession
|
```ShellSession
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
Extra Python Packages are required if you want to use ``inventory builder``:
|
||||||
|
```ShellSession
|
||||||
|
pip install -r contrib/inventory_builder/requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
Copy ``inventory/sample`` as ``inventory/mycluster``:
|
Copy ``inventory/sample`` as ``inventory/mycluster``:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue