mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
31 lines
850 B
Django/Jinja
31 lines
850 B
Django/Jinja
[
|
|
{% for host in mailman3_domains %}
|
|
{
|
|
"fields": {
|
|
"domain": "{{ host }}",
|
|
"name": "Fedora mailing-lists"
|
|
},
|
|
"model": "sites.site",
|
|
"pk": {{ loop.index }}
|
|
},
|
|
{% endfor %}
|
|
{% for service_name, service_data in mailman3_login.items() %}
|
|
{
|
|
"fields": {
|
|
"name": "{{ service_data.display_name }}",
|
|
"sites": [
|
|
{% for host in mailman3_domains %}
|
|
{{ loop.index }}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"client_id": "{{ mailman_login_secrets[env][service_name].client_id }}",
|
|
"secret": "{{ mailman_login_secrets[env][service_name].secret }}",
|
|
"key": "",
|
|
"provider": "{{ service_data.provider }}"
|
|
},
|
|
"model": "socialaccount.socialapp",
|
|
"pk": {{ loop.index }}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
]
|