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
This commit is contained in:
Tristan Cacqueray 2018-06-27 00:24:36 +00:00
parent 8ed7cf4c52
commit 050f89f067
1 changed files with 5 additions and 0 deletions

View File

@ -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