- 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"