- 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 file: path: "{{ zuul_info_dir }}" state: directory - name: Copy ansible inventory to logs dir delegate_to: localhost copy: src: "{{ inventory_file }}" dest: "{{ zuul_info_dir }}"