configpolicy/hostvds.openstack.yml

19 lines
412 B
YAML

plugin: openstack.cloud.openstack
only_clouds:
- hostvds
cache: true
cache_plugin: jsonfile
cache_connection: .inventory-cache
compose:
ansible_user: '"root"'
ansible_host: &ipv4
(openstack.addresses[openstack.addresses|first]
| selectattr('version', 'eq', 4)
| first
).addr
ansible_ssh_host: *ipv4
keyed_groups:
- key: openstack.metadata.groups|split(',')
prefix: ''
separator: ''