dnsservice/ansible/tasks/lbsite.yml

27 lines
620 B
YAML
Raw Normal View History

2024-08-05 20:04:05 +00:00
- name: ensure /var/www/site exists
2024-08-03 19:05:31 +00:00
file:
path: /var/www/site
state: directory
mode: '0755'
owner: caddy
group: caddy
2024-08-05 20:04:05 +00:00
- name: ensure /var/www/data exists
file:
path: /var/www/data
state: directory
mode: '0755'
owner: caddy
group: caddy
2024-08-03 19:05:31 +00:00
- name: copy static assets
copy:
src: "{{ playbook_dir }}/assets/static/"
dest: "/var/www/site/static/"
2024-08-05 20:04:05 +00:00
- name: copy api assets
copy:
src: "{{ playbook_dir }}/assets/api/"
dest: "/var/www/site/api/"
2024-08-03 19:05:31 +00:00
- name: copy index.html
template:
src: "{{ playbook_dir }}/assets/index.html"
dest: "/var/www/site/index.html"