diff --git a/infrared_plugin/main.yml b/infrared_plugin/main.yml index 02f0f12..c4006d7 100644 --- a/infrared_plugin/main.yml +++ b/infrared_plugin/main.yml @@ -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: diff --git a/molecule/infrared/converge.yml b/molecule/infrared/converge.yml index c8685d7..f2f7c20 100644 --- a/molecule/infrared/converge.yml +++ b/molecule/infrared/converge.yml @@ -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 \