Skip to content

Commit 0915b7e

Browse files
authored
packer-rocm: init
Mistakenly duplicated the 'init' task. Initial search failed due to templating. Was already covered. Lesson learned: builders _cannot_ have `noexec` on `/home`. Makes the plugins appear as if they are absent; `permission denied` on execution.
1 parent 3e066c6 commit 0915b7e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

packer-rocm/playbooks/build.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@
113113
name: "{{ packer_prereqs['common'] + (packer_prereqs[ansible_os_family] | default([])) }}"
114114
state: present
115115

116-
- name: "Ensure Packer plugins are installed"
117-
ansible.builtin.command: "{{ packer_binary }} init {{ (workdir, packer_dist) | path_join }}"
118-
changed_when: false
116+
- name: "Run 'packer init', ensure plugin coverage"
117+
ansible.builtin.command:
118+
cmd: "{{ packer_binary }} init ."
119+
chdir: "{{ (workdir, packer_dist) | path_join }}"
120+
environment:
121+
PACKER_LOG: '1' # wanted as str
122+
changed_when: false # command w/ assumed changes: report 'ok' or failure
119123

120124
- name: Build
121125
tags: ['build']
@@ -131,14 +135,6 @@
131135
ansible.builtin.set_fact:
132136
packer_vars: "{{ packer_rocm_hcl_awk.stdout_lines | replace('\"', '') }}"
133137

134-
- name: "Run 'packer init', ensure plugin coverage"
135-
ansible.builtin.command:
136-
cmd: 'packer init .'
137-
chdir: "{{ (workdir, packer_dist) | path_join }}"
138-
environment:
139-
PACKER_LOG: '1' # wanted as str
140-
changed_when: false # command w/ assumed changes: report 'ok' or failure
141-
142138
- name: "Run 'packer build', create '{{ _creates }}'"
143139
ansible.builtin.command:
144140
cmd: >

0 commit comments

Comments
 (0)