2018-02-26 20:07:23 +01:00
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
tasks:
|
2018-10-16 06:46:09 +00:00
|
|
|
- name: Convert test_command to list
|
|
|
|
set_fact:
|
|
|
|
test_commands: ['{{ test_command }}']
|
|
|
|
when: test_command | type_debug != 'list'
|
|
|
|
|
|
|
|
- name: Use test_command list
|
|
|
|
set_fact:
|
|
|
|
test_commands: '{{ test_command }}'
|
|
|
|
when: test_command | type_debug == 'list'
|
|
|
|
|
2018-02-26 20:07:23 +01:00
|
|
|
- name: Run test_command
|
2018-10-16 06:46:09 +00:00
|
|
|
command: '{{ item }}'
|
2018-02-26 20:07:23 +01:00
|
|
|
args:
|
|
|
|
chdir: '{{ zuul.project.src_dir }}'
|
2018-10-16 06:46:09 +00:00
|
|
|
with_items: '{{ test_commands }}'
|