Skip to content

Commit 3faa74f

Browse files
committed
Add some documentation for ansible provision mode
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 344c010 commit 3faa74f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

examples/default.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ containerd:
227227
# #!/bin/bash
228228
# dnf config-manager --add-repo ...
229229
# dnf install ...
230+
# # `ansible` is executed after other scripts are complete
231+
# # It requires `ansible-playbook` command to be installed.
232+
# # Environment variables such as ANSIBLE_CONFIG can be used, to control the behavior of the playbook execution.
233+
# # See ansible docs, and `ansible-config`, for more info https://docs.ansible.com/ansible/latest/playbook_guide/
234+
# - mode: ansible
235+
# playbook: playbook.yaml
230236

231237
# Probe scripts to check readiness.
232238
# 🟢 Builtin default: null

website/content/en/docs/dev/Internals/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Metadata:
3737
cloud-init:
3838
- `cidata.iso`: cloud-init ISO9660 image. See [`cidata.iso`](#cidataiso).
3939

40+
Ansible:
41+
- `inventory.yaml`: the Ansible node inventory. See [ansible](#ansible).
42+
4043
disk:
4144
- `basedisk`: the base image
4245
- `diffdisk`: the diff image (QCOW2)
@@ -137,6 +140,10 @@ The directory contains the following files:
137140
- `$QEMU_SYSTEM_ARM`: path of `qemu-system-arm`
138141
- Default: `qemu-system-arm` in `$PATH`
139142

143+
## Ansible
144+
The instance directory contains an inventory file, that might be used with Ansible playbooks and commands.
145+
See [Building Ansible inventories](https://docs.ansible.com/ansible/latest/inventory_guide/) about dynamic inventories.
146+
140147
## `cidata.iso`
141148
`cidata.iso` contains the following files:
142149

0 commit comments

Comments
 (0)