dnsservice/ansible/tasks/lbsite.yml

16 lines
370 B
YAML
Raw Normal View History

2024-08-03 19:05:31 +00:00
- 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"