--- icinga_routers: {% for router in icinga_routers %} - name: "{{ router.name }}" address6: "{{ router.address6 }}" group: "icingaadmins" {% endfor %} icinga_bmcs: {% for bmc in icinga_bmcs %} - name: "{{ bmc.name }}" address6: "{{ bmc.address6 }}" group: "icingaadmins" {% if bmc.preauth %} preauth: True {% endif %} {% if bmc.bmc_password_admin_default is not none %} bmc_username_admin_default: "Administrator" bmc_password_admin_default: "{{ bmc.bmc_password_admin_default }}" {% endif %} {% if bmc.bmc_password_admin is not none %} bmc_username_admin: "Administrator" bmc_password_admin: "{{ bmc.bmc_password_admin }}" {% endif %} {% if bmc.bmc_username is not none and bmc.bmc_password is not none %} bmc_username: "{{ bmc.bmc_username }}" bmc_password: "{{ bmc.bmc_password }}" {% endif %} {% if bmc.middleware_endpoint is not none %} middleware_endpoint: "{{ bmc.middleware_endpoint }}" {% endif %} {% if bmc.middleware_username is not none %} middleware_username: "{{ bmc.middleware_username }}" {% endif %} {% if bmc.middleware_password is not none %} middleware_password: "{{ bmc.middleware_password }}" {% endif %} {% endfor %}