updated netboxinventory state

This commit is contained in:
Paul 2022-06-08 23:50:55 +02:00
parent 4518388841
commit ed13a53830

View File

@ -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