# {{ ansible_managed }} {% for storage_name, storage in bareos_server_storages.items() %} Storage { Name = "{{ storage_name }}" Address = "{{ storage.address }}" Password = "{{ storage.password }}" Device = "{{ storage.device }}" MediaType = "{{ storage.media_type|default('File') }}" {% if 'config' in storage %} {% for storage_option, storage_value in storage.config.items() %} {{ storage_option }} = {{ storage_value }} {% endfor %} {% endif %} } {% endfor %}