Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V7.6.0 #363

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ An alternative method of access exists on MacOS and Linux, if using `--no-autoex
* [Utility scripts](docs/utility_scripts/index.md)
* [Volume usage examples](docs/volume-examples.md)
* [WebUI Hosted Mode](docs/webui.md)
* [Ansible dynamic inventory with aerolab](usage/basic/ansible.md)

## Changelog

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@
* [Utility scripts](utility_scripts/index.md)
* [Volume usage examples](volume-examples.md)
* [WebUI Hosted Mode](webui.md)
* [Ansible dynamic inventory with aerolab](usage/basic/ansible.md)
19 changes: 19 additions & 0 deletions docs/usage/basic/ansible.md
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).
Loading