Skip to content

Commit

Permalink
add version number manually contorl
Browse files Browse the repository at this point in the history
  • Loading branch information
yiidtw committed Oct 7, 2023
1 parent 7a5847c commit 9391aae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: staging
vars:
build_root_abspath: "/home/ubuntu/build/{{ ansible_date_time.iso8601_basic_short }}"
demobackend_version: "latest"
demobackend_version: "{{ var_demobackend_version | default('latest') }}"
ansible_python_interpreter: "/usr/bin/python3"
roles:
# - role: hello_world
Expand Down
3 changes: 3 additions & 0 deletions roles/build_fastapi/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: show remote host
debug:
msg: "the remote server is {{ ansible_host }}"
- name: show api version
debug:
msg: "{{ demobackend_version }}"
- name: create build dir if not exists
file:
path: "{{ build_root_abspath }}"
Expand Down

0 comments on commit 9391aae

Please sign in to comment.