2019-07-11 10:17:02 +02:00
|
|
|
---
|
2020-01-10 09:55:35 -03:00
|
|
|
- name: Check if component is already deployed
|
2020-02-03 09:47:44 -03:00
|
|
|
shell: "test -f {{ bridge_path }}/{{ component }}/.env && echo 'true'"
|
2020-01-10 09:55:35 -03:00
|
|
|
ignore_errors: True
|
|
|
|
register: already_deployed
|
|
|
|
when: check_deployed is defined
|
|
|
|
|
|
|
|
- name: Set if tasks should be skipped
|
|
|
|
set_fact: skip_task="{{ already_deployed.stdout | default('false') }}"
|
|
|
|
|
|
|
|
- name: Include dependencies tasks
|
|
|
|
include_tasks: dependencies.yml
|
|
|
|
when: skip_task != true
|
|
|
|
|
|
|
|
- name: Include repo tasks
|
|
|
|
include_tasks: repo.yml
|
2020-02-03 18:48:28 -03:00
|
|
|
when: skip_task != true and skip_repo is undefined
|
2020-01-10 09:55:35 -03:00
|
|
|
|
|
|
|
- name: Include logging tasks
|
|
|
|
include_tasks: logging.yml
|
|
|
|
when: skip_task != true
|