Working devops
This commit is contained in:
parent
a9171c5f21
commit
baf329f11c
|
@ -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"],
|
||||
]
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
template_dir = "templates/"
|
||||
template_dir = "devops/templates/templates"
|
||||
port = 3001
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue