Working ansible recipe

This commit is contained in:
notplants 2021-12-18 18:33:45 -05:00
parent baf329f11c
commit eba140be0b
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
[default]
template_dir = "devops/templates/templates"
template_dir = "devops/templates/tera"
port = 3001

View File

@ -87,13 +87,13 @@
- name: create templates directory
file:
path: /srv/peach-dynddns-server/templates
path: /srv/peach-dyndns-server/templates/
state: directory
- name: Copy zonefile.tera
template:
src: "templates/templates/zonefile.tera"
dest: /srv/peach-dyndns-server/templates/zonefile.tera
ansible.builtin.copy:
src: "templates/tera/zonefile.tera"
dest: /srv/peach-dynddns-server/templates/zonefile.tera
owner: root
group: bind
mode: 0644