gty
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -43s

This commit is contained in:
2025-03-20 15:23:11 +01:00
parent 3cf5388d36
commit 87b0415506

View File

@@ -5,27 +5,26 @@
connection: local connection: local
vars: vars:
project_folder: "/home/jonnybravo/.docker/pythonflask-ausgaben" project_folder: "/home/jonnybravo/.docker/pythonflask-ausgaben"
docker_project_name: "pythonflaskausgabe"
tasks: tasks:
- name: Finde all Files
find:
paths: "{{ playbook_dir }}"
recurse: True
register: find_output
- debug:
var: find_output.files
- name: Copy all Files - name: Copy all Files
copy: copy:
src: "{{ playbook_dir }}/" src: "{{ playbook_dir }}/"
dest: "{{project_folder}}" dest: "{{project_folder}}"
remote_src: True remote_src: True
# loop:
# - "{{ find_output.files }}"
- name: Start Docker COmpose - name: Start Docker COmpose
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: "{{ project_folder }}" project_src: "{{ project_folder }}"
project_name: pythonflaskausgabe project_name: "{{docker_project_name}}"
recreate: always recreate: always
register: compose_output register: compose_output
- name: Show output - name: Show output
debug: debug:
var: compose_output var: compose_output
- name: Verify that web and db services are running
ansible.builtin.assert:
that:
- python-app.State == 'running'
vars:
python-app: >-
{{ output.containers | selectattr("Service", "python-app") | first }}