Remove old entries from Makefile

This commit is contained in:
Tobias Reisinger 2026-11-10 22:25:14 +01:00
commit 14889f5594
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 13 additions and 16 deletions

View file

@ -7,21 +7,11 @@ PWD := $(shell pwd)
.FORCE:
./inventory/group_vars/all/all_services.yml: .FORCE
tofu output --json services \
| yq -y '{all_services: .}' \
> ./inventory/group_vars/all/all_services.yml
./inventory/group_vars/all/opentofu.yml: .FORCE
tofu output --json \
| yq -y '{opentofu: with_entries(.value |= .value)}' \
> ./inventory/group_vars/all/opentofu.yml
./dns/hosts.json: .FORCE
tofu output --json hosts \
> ./dns/hosts.json
./dns/services.json: ./inventory/group_vars/all/all_services.yml
./dns/services.json: .FORCE
ansible-playbook \
-e services_json_file=$(PWD)/dns/services.json \
playbooks/create-services-for-dnscontrol.yml
@ -31,11 +21,7 @@ PWD := $(shell pwd)
> ./dns/dkim-ses.json
output-dns: ./dns/hosts.json ./dns/services.json ./dns/dkim-ses.json
output-ansible: ./inventory/group_vars/all/opentofu.yml
output: output-dns output-ansible
output: ./dns/hosts.json ./dns/services.json ./dns/dkim-ses.json
./types-dnscontrol.d.ts:
dnscontrol write-types

View file

@ -1,7 +1,18 @@
---
- 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 }}"