Update roles/build_fastapi/tasks/main.yml

This commit is contained in:
2024-01-29 12:50:01 +08:00
parent 33c71b8faf
commit 4da6f293e8

View File

@@ -20,19 +20,14 @@
command: command:
cmd: source "{{ build_root_abspath }}/venv/bin/activate" cmd: source "{{ build_root_abspath }}/venv/bin/activate"
cmd: pip install "fastapi[all]" cmd: pip install "fastapi[all]"
#- name: Make sure requirements are met to run vmware_guest_snapshot module
# become: true
# pip:
# name: fastapi[all]
# state: present
- name: hello-world - name: hello-world
community.docker.docker_image: community.docker.docker_image:
name: helloworld-fastapi name: helloworld-fastapi
source: build source: build
build: build:
path: "{{ build_root_abspath }}" path: "{{ build_root_abspath }}"
pull: false pull: false
tag: "{{ demobackend_version }}" tag: "{{ demobackend_version }}"
- name: run docker - name: run docker
community.docker.docker_image: community.docker.docker_image:
name: demobackend name: demobackend