diff --git a/roles/log-inventory/tasks/main.yaml b/roles/log-inventory/tasks/main.yaml index 3f8572c55..8c76d3580 100644 --- a/roles/log-inventory/tasks/main.yaml +++ b/roles/log-inventory/tasks/main.yaml @@ -1,3 +1,8 @@ +- name: Set inventory_file fact + set_fact: + inventory_file: "{{ zuul.executor.inventory_file }}" + when: inventory_file is not defined + - name: Ensure Zuul Ansible directory exists delegate_to: localhost run_once: true