2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "ovh/map.jinja" import ovh with context %}
|
|
|
|
{%- for domain, values in ovh.domain.zones.items() %}
|
|
|
|
{%- for record in values.records %}
|
|
|
|
ovh-domain-{{ domain }}-{{ "{}-{}-{}".format(record.name, record.type, record.target)|md5 }}:
|
|
|
|
ovhapi.domain_record_present:
|
|
|
|
- name: ovh-domain-{{ domain }}-{{ "{}-{}-{}".format(record.name, record.type, record.target)|md5 }}
|
|
|
|
- zone: {{ domain }}
|
2021-02-09 01:29:48 +01:00
|
|
|
- recordname: "{{ record.name }}"
|
2020-07-10 00:58:55 +02:00
|
|
|
- recordtype: {{ record.type }}
|
|
|
|
- target: {{ record.target }}
|
|
|
|
- ttl: {{ record.ttl|default(0) }}
|
|
|
|
{%- endfor %}
|
2021-08-19 21:15:24 +02:00
|
|
|
{%- endfor %}
|
2022-08-06 20:23:43 +02:00
|
|
|
|
|
|
|
{%- for domain in ovh.domain.zones.keys() %}
|
|
|
|
ovh-domain-refresh-{{ domain }}:
|
|
|
|
ovhapi.domain_zone_refresh:
|
|
|
|
- name: ovh-domain-refresh-{{ domain }}
|
|
|
|
- zone: {{ domain }}
|
|
|
|
{%- endfor %}
|