Move services.json into ansible

This commit is contained in:
Tobias Reisinger 2024-10-03 03:46:55 +02:00
commit 3fed27b42f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 188 additions and 153 deletions

View file

@ -0,0 +1,11 @@
---
- name: Create services for dnscontrol
hosts: localhost
tasks:
- name: Create the services json file
ansible.builtin.template:
src: "json.j2"
dest: "{{ services_json_file }}"
mode: "0644"
vars:
json: "{{ all_services | services_to_dnscontrol() }}"