8 lines
197 B
Bash
Executable File
8 lines
197 B
Bash
Executable File
#!/bin/sh
|
|
|
|
multipass list --format=json |jq '{
|
|
_meta: {hostvars: [.list[] | {(.name): {ansible_host: .ipv4[0]}}] | add},
|
|
linux: {hosts: [.list[].name]},
|
|
ubuntu24: {hosts: [.list[].name]},
|
|
}'
|