-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Glonek
committed
Jul 17, 2024
1 parent
08631da
commit c46ec15
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Exporting Inventory to Ansible | ||
|
||
AeroLab supports exporting the cluster/client/agi inventory into ansible. To see the inventory in ansible format, simply run `aerolab inventory ansible`. | ||
|
||
## Recommended method: Dynamic inventory | ||
|
||
Running `aerolab showcommands` will install a command called `aerolab-ansible`. Ansible can then be used with dynamic inventory as so: | ||
|
||
```bash | ||
ansible-playbook -i aerolab-ansible playbook.yaml | ||
``` | ||
|
||
## Dynamic inventory without installation | ||
|
||
Alternatively, to avoid installing the command, run `ln -s ./aerolab ./aerolab-ansible` and then use `ansible-playbook -i ./aerolab-ansible playbook.yaml` | ||
|
||
## Footnote | ||
|
||
The concept and implementation are explained [on the ansible website](https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#developing-inventory-scripts). |