File tree 7 files changed +62
-2
lines changed
7 files changed +62
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ jobs:
122
122
run : sudo make install
123
123
- name : Verify templates match `limactl edit` format
124
124
run : |
125
- find templates -name '*.yaml' -exec limactl edit --set 'del(.nothing)' {} \;
125
+ find templates -name '*.yaml' -not \( -path "templates/ansible/*" -prune \) - exec limactl edit --set 'del(.nothing)' {} \;
126
126
git diff-index --exit-code HEAD
127
127
- name : Uninstall
128
128
run : sudo make uninstall
@@ -196,7 +196,7 @@ jobs:
196
196
- name : Validate jsonschema
197
197
run : make schema-limayaml.json
198
198
- name : Validate templates
199
- run : find -L templates -name '*.yaml' | xargs limactl validate
199
+ run : find -L templates -name '*.yaml' -not \( -path "templates/ansible/*" -prune \) | xargs limactl validate
200
200
- name : Install test dependencies
201
201
# QEMU: required by Lima itself
202
202
# bash: required by test-templates.sh (OS version of bash is too old)
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Distro:
32
32
- [ ` experimental/opensuse-tumbleweed ` ] ( ./experimental/opensuse-tumbleweed.yaml ) : [ experimental] openSUSE Tumbleweed
33
33
- [ ` experimental/debian-sid ` ] ( ./experimental/debian-sid.yaml ) : [ experimental] Debian Sid
34
34
35
+ Provisioning:
36
+ - [ ` ansible ` ] ( ./ansible.yaml ) : Ansible, using [ playbook.yaml] ( ./ansible/playbook.yaml )
37
+
35
38
Container engines:
36
39
- [ ` apptainer ` ] ( ./apptainer.yaml ) : Apptainer
37
40
- [ ` apptainer-rootful ` ] ( ./apptainer-rootful.yaml ) : Apptainer (rootful)
Original file line number Diff line number Diff line change
1
+ minimumLimaVersion : " 1.0.0"
2
+ images :
3
+ # Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
4
+ - location : " https://cloud-images.ubuntu.com/releases/noble/release-20250313/ubuntu-24.04-server-cloudimg-amd64.img"
5
+ arch : " x86_64"
6
+ digest : " sha256:eacac65efe9e9bae0cbcb3f9d5c2b5e8c5313fa78a3bc401c3fb28b2d48cefc0"
7
+ - location : " https://cloud-images.ubuntu.com/releases/noble/release-20250313/ubuntu-24.04-server-cloudimg-arm64.img"
8
+ arch : " aarch64"
9
+ digest : " sha256:103f31c5a5b7f031a60ce3555c8fbd56317fd8ffbaaa7e17002879e6157d546d"
10
+ # Fallback to the latest release image.
11
+ # Hint: run `limactl prune` to invalidate the cache
12
+ - location : " https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img"
13
+ arch : " x86_64"
14
+ - location : " https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-arm64.img"
15
+ arch : " aarch64"
16
+ mounts :
17
+ - location : " ~"
18
+ - location : " /tmp/lima"
19
+ writable : true
20
+
21
+ provision :
22
+ - mode : ansible
23
+ playbook : ./templates/ansible/playbook.yaml
24
+ message : |
25
+ To run `ansible` on the host (assumes ansible is installed), run the following commands:
26
+ ------
27
+ export ANSIBLE_INVENTORY="{{.Dir}}/ansible-inventory.yaml"
28
+ # To see the inventory: `ansible-inventory --list --yaml`
29
+
30
+ ansible all -m ping
31
+ ------
Original file line number Diff line number Diff line change
1
+ # Ansible
2
+
3
+ Playbook example from:
4
+
5
+ < https://docs.ansible.com/ansible/latest/getting_started/get_started_playbook.html >
6
+
7
+ Template example from:
8
+
9
+ < https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_templating.html >
Original file line number Diff line number Diff line change
1
+ - name : My first play
2
+ hosts : all
3
+ tasks :
4
+ - name : Ping my hosts
5
+ ansible.builtin.ping :
6
+
7
+ - name : Print message
8
+ ansible.builtin.debug :
9
+ msg : Hello world
10
+ roles :
11
+ - hostname
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : write hostname using jinja2
3
+ ansible.builtin.template :
4
+ src : templates/test.j2
5
+ dest : /tmp/hostname
Original file line number Diff line number Diff line change
1
+ My name is {{ ansible_facts['hostname'] }}
You can’t perform that action at this time.
0 commit comments