Skip to content

Commit

Permalink
ansible inventory doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Glonek committed Jul 17, 2024
1 parent 08631da commit c46ec15
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
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).

0 comments on commit c46ec15

Please sign in to comment.