try
Some checks failed
Deploy to ras-dan-01 / deploy (push) Failing after -22s

This commit is contained in:
2025-08-26 15:10:22 +02:00
parent 5cb87a3eb2
commit 203739d799

View File

@@ -8,6 +8,7 @@
project_name: movie-db project_name: movie-db
install_dir: "/opt/{{ project_name }}" install_dir: "/opt/{{ project_name }}"
tasks: tasks:
- name: Create installation directory - name: Create installation directory
ansible.builtin.file: ansible.builtin.file:
@@ -44,5 +45,16 @@
- name: Start application with Docker Compose - name: Start application with Docker Compose
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: "{{ install_dir }}" project_src: "{{ install_dir }}"
state: present project_name: "{{ project_name }}"
recreate: always recreate: always
register: compose_output
- name: Verify that web and db services are running
ansible.builtin.assert:
that:
- pythonapp.State == 'running'
vars:
pythonapp: >-
{{ compose_output.containers | selectattr("Service","equalto", "movie-db-web") | first }}