Update roles/build_fastapi/tasks/main.yml
This commit is contained in:
@@ -20,12 +20,10 @@
|
||||
command:
|
||||
cmd: source "{{ build_root_abspath }}/venv/bin/activate"
|
||||
cmd: pip install "fastapi[all]"
|
||||
check_mode: false
|
||||
- name: install Docker
|
||||
command:
|
||||
cmd: source "{{ build_root_abspath }}/venv/bin/activate"
|
||||
cmd: pip install "docker"
|
||||
check_mode: false
|
||||
- name: Build container image
|
||||
community.docker.docker_image:
|
||||
name: helloworld-fastapi
|
||||
@@ -34,7 +32,6 @@
|
||||
path: "{{ build_root_abspath }}"
|
||||
pull: false
|
||||
tag: "{{ demobackend_version }}"
|
||||
|
||||
- name: run docker
|
||||
community.docker.docker_container:
|
||||
name: demobackend
|
||||
|
||||
Reference in New Issue
Block a user