-
Hi, in ini inventory we can make a parent-children relations like this: [main:children]
tag1
tag2
[tag1]
host1
host2
[tag2]
host3
host4 The tree will be: ---
main:
tag1:
- host1
- host2
tag2:
- host3
- host4 This is possible to make a children of groups by Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You probably will have to look into add_host or group_by, or you will need to use a combination of Ansible supports multiple |
Beta Was this translation helpful? Give feedback.
-
Resolved via: ---
plugin: 'netbox.netbox.nb_inventory'
api_endpoint: '<endpoint>'
token: '<token>'
config_context: 'no'
site_data: 'yes'
interfaces: 'yes'
group_names_raw: 'yes'
use_extra_vars: 'yes'
fetch_all: 'no'
group_by:
- 'device_roles'
keyed_groups:
- key: 'device_role'
parent_group: 'my_root_group_name'
trailing_separator: false
separator: ''
query_filters:
- status: 'active'
- cluster_id: 3
device_query_filters:
- has_primary_ip: 'true'
vm_query_filters:
- name__empty: 'true' |
Beta Was this translation helpful? Give feedback.
Resolved via: