19 lines
355 B
YAML
19 lines
355 B
YAML
---
|
|
- hosts: all
|
|
|
|
vars:
|
|
project_dir: /srv/www.oliverdavies.uk
|
|
|
|
tasks:
|
|
- ansible.builtin.file:
|
|
path: "{{ project_dir }}"
|
|
state: directory
|
|
owner: opdavies
|
|
group: opdavies
|
|
become: true
|
|
|
|
- ansible.builtin.synchronize:
|
|
src: ../../output_prod/
|
|
dest: "{{ project_dir }}"
|
|
delete: true
|