{% for user in keys %} {% if keys[user].ssh_as_root | default(false) %} {{ keys[user].pub_key }} {% endif %} {% endfor %}