Files
PythonFlaskAusgaben/start.yml
jonnybravo 3cf5388d36
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -39s
tyr
2025-03-20 15:12:40 +01:00

32 lines
821 B
YAML

- 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