added posts to copy and prevented lossy clobbering

This commit is contained in:
cbax 2024-10-24 16:57:11 +00:00
parent 552a13c797
commit 995ac1b7d2

View file

@ -9,11 +9,19 @@
src: "{{playbook_dir}}/"
dest: "/root/cbax_dev"
- name: Move assets
- name: Copy static files to application folder in /srv/http
ansible.builtin.copy:
backup: true
remote_src: true
src: /root/cbax_dev/static/
dest: /srv/http/cbax_dev/
src: /root/cbax_dev/static
dest: /srv/http/cbax_dev/static
- name: Copy posts to application folder in /srv/http
ansible.builtin.copy:
backup: true
remote_src: true
src: /root/cbax_dev/posts
dest: /srv/http/cbax_dev/posts
- name: Tear down existing service
ansible.builtin.command: "docker compose down --rmi all"