2da63541b8
Change-Id: Idb785fd23e15316ae52650ed2ce62fe296cfd8b7
16 lines
523 B
YAML
16 lines
523 B
YAML
- name: Ensure Zuul Ansible directory exists
|
|
delegate_to: localhost
|
|
run_once: true
|
|
file:
|
|
path: "{{ zuul_info_dir }}"
|
|
state: directory
|
|
|
|
# We don't use the ansible inventory_file variable because it is not defined
|
|
# for nodeless job running on the executor directly:
|
|
# https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.4.html#inventory
|
|
- name: Copy ansible inventory to logs dir
|
|
delegate_to: localhost
|
|
copy:
|
|
src: "{{ zuul.executor.inventory_file }}"
|
|
dest: "{{ zuul_info_dir }}"
|