Add missing artcl_publish in infrared plugin

The patch adds a missing artcl_publish condition in the infrared
plugin definition - infrared_plugin/main.yml. The var is used to
controll publishing part of the role.

Change-Id: I138f9d892b8058ae3f7b2e69eb9fd335de9e7367
This commit is contained in:
Martin Kopec 2020-06-30 16:21:35 +00:00
parent fe1ed41095
commit 01ad1bb5e9
2 changed files with 3 additions and 1 deletions

View File

@ -56,6 +56,7 @@
- name: Ansible role collect logs
include_role:
name: ansible-role-collect-logs
when: artcl_publish|default(false)|bool
- name: Delete artifact files from localhost
file:

View File

@ -76,7 +76,8 @@
shell: |
export PATH=$PATH:/usr/local/sbin:/usr/sbin
source {{ infrared_venv }}/bin/activate
ir ansible-role-collect-logs --collect_log_types "testing" \
ir ansible-role-collect-logs --openstack_nodes localhost \
--collect_log_types "testing" \
--artcl_collect_dir {{ infrared_location }}/collected_files_test \
--artcl_collect_list /tmp/*.log,/tmp/just_file \
--artcl_collect_list_append /tmp/config.conf \