Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions roles/reportportal/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
state: directory
mode: "0755"

- name: Check if Data router client binary is already present
ansible.builtin.stat:
path: "{{ cifmw_reportportal_droute_dir }}/{{ cifmw_reportportal_droute_binary }}"
register: droute_binary_stat
when: not cifmw_reportportal_dry_run | bool

- name: Get the Data router client
vars:
_droute_url: >-
Expand All @@ -38,12 +44,16 @@
cifmw_reportportal_droute_binary) |
path_join
}}
_droute_dest: "{{ cifmw_reportportal_droute_dir }}/{{ cifmw_reportportal_droute_binary }}"
ansible.builtin.get_url:
url: "{{ _droute_url }}"
dest: "{{ cifmw_reportportal_droute_dir }}"
dest: "{{ _droute_dest }}"
backup: true
mode: "0755"
when: not cifmw_reportportal_dry_run | bool
when:
- not cifmw_reportportal_dry_run | bool
- droute_binary_stat is not skipped
- not droute_binary_stat.stat.exists

- name: Create the metadata file
ansible.builtin.template:
Expand Down
Loading