infrastructure/playbooks/create-services-for-dnscontrol.yml

20 lines
564 B
YAML

---
- name: Prepare opentofu
hosts: localhost
gather_facts: false
tasks:
- name: Import tasks to prepare opentofu
ansible.builtin.import_tasks: tasks/prepare-opentofu.yml
- name: Create services for dnscontrol
hosts: localhost
tasks:
- name: Load secrets
ansible.builtin.import_tasks: tasks/load-secrets.yml
tags: always
- name: Create the services json file
ansible.builtin.copy:
dest: "{{ services_json_file }}"
content: "{{ all_services | services_to_dnscontrol | to_json }}"
mode: "0644"