diff --git a/states/netboxinventory/init.sls b/states/netboxinventory/init.sls index c7ee36f..b7eae76 100644 --- a/states/netboxinventory/init.sls +++ b/states/netboxinventory/init.sls @@ -12,6 +12,8 @@ netbox.create_site_{{ salt['grains.get']('location') }}: {%- endif %} {%- if salt['netbox.get'](app='dcim', endpoint='device-roles', name=salt['grains.get']('type')) == {} %} +"{{ salt['netbox.get'](app='dcim', endpoint='sites', name='nurnberg')}}" +"{{ salt['netbox.get'](app='dcim', endpoint='device-roles', name='front')}}" netbox.create_device_role_{{ salt['grains.get']('type') }}: module.run: - name: netbox.create_device_role