Update roles/build_fastapi/tasks/main.yml

This commit is contained in:
2024-01-29 12:33:08 +08:00
parent 72339da37a
commit f56be3a0f8

View File

@@ -26,7 +26,7 @@
# name: fastapi[all] # name: fastapi[all]
# state: present # state: present
- name: hello-world - name: hello-world
docker_image: community.docker.docker_image:
name: helloworld-fastapi name: helloworld-fastapi
source: build source: build
build: build:
@@ -34,7 +34,7 @@
pull: false pull: false
tag: "{{ demobackend_version }}" tag: "{{ demobackend_version }}"
- name: run docker - name: run docker
docker_container: community.docker.docker_image:
name: demobackend name: demobackend
state: started state: started
recreate: yes recreate: yes