finsh
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -41s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -41s
This commit is contained in:
14
start.yml
14
start.yml
@@ -18,13 +18,19 @@
|
|||||||
project_name: "{{docker_project_name}}"
|
project_name: "{{docker_project_name}}"
|
||||||
recreate: always
|
recreate: always
|
||||||
register: compose_output
|
register: compose_output
|
||||||
- name: Show output
|
|
||||||
debug:
|
#- name: Show output
|
||||||
var: compose_output
|
# debug:
|
||||||
|
# var: compose_output
|
||||||
|
# - name: "check this"
|
||||||
|
# debug:
|
||||||
|
# msg:
|
||||||
|
# - "{{ compose_output.containers | selectattr('Service', 'equalto', 'python-app')| first }}"
|
||||||
|
|
||||||
- name: Verify that web and db services are running
|
- name: Verify that web and db services are running
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- pythonapp.State == 'running'
|
- pythonapp.State == 'running'
|
||||||
vars:
|
vars:
|
||||||
pythonapp: >-
|
pythonapp: >-
|
||||||
{{ output.containers | selectattr("Service", "python-app") | first }}
|
{{ compose_output.containers | selectattr("Service","equalto", "python-app") | first }}
|
||||||
|
|||||||
Reference in New Issue
Block a user