diff --git a/templates/collect_logs.yaml.j2 b/templates/collect_logs.yaml.j2 index 9879fe0e..07bc19eb 100644 --- a/templates/collect_logs.yaml.j2 +++ b/templates/collect_logs.yaml.j2 @@ -55,6 +55,7 @@ find: paths: "/var/log/extra/" patterns: 'container-ps-before_*.txt' + excludes: "{% raw %}{{ 'undercloud' in inventory_hostname | ternary(null, 'container-ps-before_undercloud*') }}{% endraw %}" register: found_files - name: get the oldest file related to container states