First commit
This commit is contained in:
6
ansible/inventory/multipass.sh
Executable file
6
ansible/inventory/multipass.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
multipass list --format=json |jq '{
|
||||
_meta: {hostvars: [.list[] | {(.name): {ansible_host: .ipv4[-1]}}] | add},
|
||||
linux: {hosts: [.list[].name]}
|
||||
}'
|
||||
Reference in New Issue
Block a user