From ed13a53830b22a4d70eeeabc8db7a27ae6a0f220 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 8 Jun 2022 23:50:55 +0200 Subject: [PATCH] updated netboxinventory state --- states/netboxinventory/init.sls | 2 ++ 1 file changed, 2 insertions(+) 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