mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add 'digital_ocean' as group (#21631)
This commit is contained in:
parent
1d419c737d
commit
c119f6e642
1 changed files with 3 additions and 1 deletions
|
@ -40,6 +40,7 @@ is to use the output of the --env option with export:
|
||||||
The following groups are generated from --list:
|
The following groups are generated from --list:
|
||||||
- ID (droplet ID)
|
- ID (droplet ID)
|
||||||
- NAME (droplet NAME)
|
- NAME (droplet NAME)
|
||||||
|
- digital_ocean
|
||||||
- image_ID
|
- image_ID
|
||||||
- image_NAME
|
- image_NAME
|
||||||
- distro_NAME (distribution NAME from image)
|
- distro_NAME (distribution NAME from image)
|
||||||
|
@ -452,7 +453,8 @@ class DigitalOceanInventory(object):
|
||||||
self.inventory[droplet['name']] = [dest]
|
self.inventory[droplet['name']] = [dest]
|
||||||
|
|
||||||
# groups that are always present
|
# groups that are always present
|
||||||
for group in ('region_' + droplet['region']['slug'],
|
for group in ('digital_ocean',
|
||||||
|
'region_' + droplet['region']['slug'],
|
||||||
'image_' + str(droplet['image']['id']),
|
'image_' + str(droplet['image']['id']),
|
||||||
'size_' + droplet['size']['slug'],
|
'size_' + droplet['size']['slug'],
|
||||||
'distro_' + DigitalOceanInventory.to_safe(droplet['image']['distribution']),
|
'distro_' + DigitalOceanInventory.to_safe(droplet['image']['distribution']),
|
||||||
|
|
Loading…
Add table
Reference in a new issue