You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
861 B
26 lines
861 B
---
|
|
|
|
- name: Check if go-swagger is installed globally
|
|
command: swagger version
|
|
register: check_global_goswagger_version
|
|
changed_when: false
|
|
ignore_errors: yes
|
|
|
|
- name: Set the 'swagger' command path as fact
|
|
set_fact:
|
|
threescale_cicd_goswagger_command: 'swagger'
|
|
cacheable: true
|
|
when: check_global_goswagger_version is success
|
|
|
|
- name: Check if go-swagger is installed locally
|
|
command: '{{ threescale_cicd_local_bin_path }}/swagger version'
|
|
register: check_local_goswagger_version
|
|
changed_when: false
|
|
ignore_errors: yes
|
|
when: check_global_goswagger_version is failed
|
|
|
|
- name: Set the 'swagger' command path as fact
|
|
set_fact:
|
|
threescale_cicd_goswagger_command: '{{ threescale_cicd_local_bin_path }}/swagger'
|
|
cacheable: true
|
|
when: check_local_goswagger_version is success and check_local_goswagger_version is not skipped
|
|
|