- name: Start PythonFlask gather_facts: True become: False hosts: localhost connection: local vars: project_folder: "/home/jonnybravo/.docker/pythonflask-ausgaben" tasks: - name: Finde all Files find: paths: "{{ playbook_dir }}" recurse: True register: find_output - debug: var: find_output.files - name: Copy all Files copy: src: "{{ playbook_dir }}/" dest: "{{project_folder}}" remote_src: True # loop: # - "{{ find_output.files }}" - name: Start Docker COmpose community.docker.docker_compose_v2: project_src: "{{ project_folder }}" project_name: pythonflaskausgabe recreate: always register: compose_output - name: Show output debug: var: compose_output