Remove old entries from Makefile
This commit is contained in:
parent
3cea4f6076
commit
14889f5594
2 changed files with 13 additions and 16 deletions
18
Makefile
18
Makefile
|
|
@ -7,21 +7,11 @@ PWD := $(shell pwd)
|
||||||
|
|
||||||
.FORCE:
|
.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
|
./dns/hosts.json: .FORCE
|
||||||
tofu output --json hosts \
|
tofu output --json hosts \
|
||||||
> ./dns/hosts.json
|
> ./dns/hosts.json
|
||||||
|
|
||||||
./dns/services.json: ./inventory/group_vars/all/all_services.yml
|
./dns/services.json: .FORCE
|
||||||
ansible-playbook \
|
ansible-playbook \
|
||||||
-e services_json_file=$(PWD)/dns/services.json \
|
-e services_json_file=$(PWD)/dns/services.json \
|
||||||
playbooks/create-services-for-dnscontrol.yml
|
playbooks/create-services-for-dnscontrol.yml
|
||||||
|
|
@ -31,11 +21,7 @@ PWD := $(shell pwd)
|
||||||
> ./dns/dkim-ses.json
|
> ./dns/dkim-ses.json
|
||||||
|
|
||||||
|
|
||||||
output-dns: ./dns/hosts.json ./dns/services.json ./dns/dkim-ses.json
|
output: ./dns/hosts.json ./dns/services.json ./dns/dkim-ses.json
|
||||||
|
|
||||||
output-ansible: ./inventory/group_vars/all/opentofu.yml
|
|
||||||
|
|
||||||
output: output-dns output-ansible
|
|
||||||
|
|
||||||
./types-dnscontrol.d.ts:
|
./types-dnscontrol.d.ts:
|
||||||
dnscontrol write-types
|
dnscontrol write-types
|
||||||
|
|
|
||||||
|
|
@ -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
|
- name: Create services for dnscontrol
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Load secrets
|
||||||
|
ansible.builtin.import_tasks: tasks/load-secrets.yml
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: Create the services json file
|
- name: Create the services json file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: "{{ services_json_file }}"
|
dest: "{{ services_json_file }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue