Working devops

This commit is contained in:
notplants 2021-12-18 18:13:52 -05:00
parent a9171c5f21
commit baf329f11c
4 changed files with 15 additions and 2 deletions

View File

@ -31,5 +31,5 @@ assets = [
["target/release/peach-dyndns-server", "usr/bin/", "755"],
["debian/reloadbind", "usr/bin/", "755"],
["debian/bindctl", "/etc/sudoers.d/bindctl", "655"],
["templates/*", "/srv/peachcloud/peach-dyndns-server/prod-peach-dyndns/templates/", "644"],
["templates/*", "/srv/peach-dyndns-server/templates/", "644"],
]

View File

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

View File

@ -85,6 +85,19 @@
path: /srv/peach-dynddns-server
state: directory
- name: create templates directory
file:
path: /srv/peach-dynddns-server/templates
state: directory
- name: Copy zonefile.tera
template:
src: "templates/templates/zonefile.tera"
dest: /srv/peach-dyndns-server/templates/zonefile.tera
owner: root
group: bind
mode: 0644
- name: Create dynserver nginx site conf
template:
src: "templates/dynserver_nginx.conf"