Replace json.j2 template with copy and content
This commit is contained in:
parent
4cc94969f5
commit
cb10a962e3
6 changed files with 9 additions and 14 deletions
|
@ -3,9 +3,7 @@
|
|||
hosts: localhost
|
||||
tasks:
|
||||
- name: Create the services json file
|
||||
ansible.builtin.template:
|
||||
src: "json.j2"
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ services_json_file }}"
|
||||
content: "{{ all_services | services_to_dnscontrol | to_json }}"
|
||||
mode: "0644"
|
||||
vars:
|
||||
json: "{{ all_services | services_to_dnscontrol() }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue