From 050f89f067f66dcb71e3f1b174c18ee5c8c8be92 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Wed, 27 Jun 2018 00:24:36 +0000 Subject: [PATCH] log-inventory: set inventory_file if needed Job running without nodeset doesn't have the inventory_file. Depends-On: https://review.openstack.org/578235 Change-Id: I5d543b4e30746a64d9bd7706ffd52d41e3710ee6 --- roles/log-inventory/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) 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