Private
Public Access
2
0
Files
bgwaf/example/ansible/inventory/multipass.sh

8 lines
197 B
Bash
Raw Normal View History

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
}'