vps/playbooks/vps1.yml
2024-07-01 20:42:57 +02:00

23 lines
625 B
YAML

---
- name: VPS 1 setup
hosts: vps1
gather_facts: false
tasks:
- name: Copy over some fun files
ansible.builtin.copy:
dest: /var/www/html/nora/
src: "../vps1/nora/"
mode: "u=rw,g=r,o=r"
#####
# END: docker compose up!
#####
# We want this to be last so that all app-specific config has been done.
- name: Copy .env
ansible.builtin.copy:
dest: "/apps/.env"
src: "../secrets/vps1.env"
mode: "u=r,g=r,o=r"
- name: Docker compose up! 🚀
community.docker.docker_compose_v2:
project_src: /apps
state: "present"