07092026
test / build-docs (push) Successful in 1s

This commit is contained in:
jonnybravo
2026-09-07 17:02:48 +02:00
parent 6678aed520
commit 23b7df0037
118 changed files with 2029 additions and 1467 deletions
+28
View File
@@ -0,0 +1,28 @@
---
- name: Deploy and start Movie-DB Application
hosts: localhost
connection: local
become: yes
vars:
project_name: movie-db
install_dir: "/opt/{{ project_name }}"
project_src: "{{ playbook_dir }}"
tasks:
- name: Create installation directory
ansible.builtin.file:
path: "{{ install_dir }}"
state: directory
mode: '0755'
- name: Copy docker-compose file
ansible.builtin.copy:
src: "{{ project_src }}/docker-compose.yml"
dest: "{{ install_dir }}/docker-compose.yml"
- name: Start application with Docker Compose
community.docker.docker_compose:
project_src: "{{ install_dir }}"
state: present
restarted: yes