mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
556 B
YAML
15 lines
556 B
YAML
6 years ago
|
plugin: cloudscale
|
||
|
ansible_host: public_v4
|
||
|
inventory_hostname: name
|
||
|
groups:
|
||
|
ansible: inventory_hostname.startswith('ansible')
|
||
|
private_net: (cloudscale.interfaces | selectattr('type', 'equalto', 'private') | list | length) > 0
|
||
|
keyed_groups:
|
||
|
- prefix: net
|
||
|
key: (cloudscale.interfaces.0.addresses.0.address + '/' + cloudscale.interfaces.0.addresses.0.prefix_length | string) | ipaddr('network')
|
||
|
- prefix: distro
|
||
|
key: cloudscale.image.operating_system
|
||
|
compose:
|
||
|
flavor_image: cloudscale.flavor.slug + '_' + cloudscale.image.slug
|
||
|
strict: False
|