Skip to content

Commit 08f36d2

Browse files
committed
Allow Packer logfile path to be set
1 parent f972cf7 commit 08f36d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/image_build/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
environment:
6464
ANSIBLE_CONFIG: "{{ ansible_cfg_file.path }}"
6565
PACKER_LOG: 1
66-
PACKER_LOG_PATH: "/tmp/packer-build.log"
66+
PACKER_LOG_PATH: "{{ lookup('ansible.builtin.env', 'PACKER_LOG_PATH', default='/tmp/packer-build.log') }}"
6767

6868
- name: Parse packer-manifest.json
6969
set_fact:

0 commit comments

Comments
 (0)