dnsservice/ansible/tasks/lbsite.yml
2024-08-03 14:05:31 -05:00

16 lines
370 B
YAML

- name: ensure /var/www exists
file:
path: /var/www/site
state: directory
mode: '0755'
owner: caddy
group: caddy
- name: copy static assets
copy:
src: "{{ playbook_dir }}/assets/static/"
dest: "/var/www/site/static/"
- name: copy index.html
template:
src: "{{ playbook_dir }}/assets/index.html"
dest: "/var/www/site/index.html"