2026-01-07 14:27:55 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
multipass list --format=json |jq '{
|
2026-01-19 15:06:34 +03:00
|
|
|
_meta: {hostvars: [.list[] | {(.name): {ansible_host: .ipv4[0]}}] | add},
|
|
|
|
|
linux: {hosts: [.list[].name]},
|
|
|
|
|
ubuntu24: {hosts: [.list[].name]},
|
2026-01-07 14:27:55 +03:00
|
|
|
}'
|