Skip to content

Commit 142ba82

Browse files
committed
add image platform argument
1 parent 3296271 commit 142ba82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roles/os_images/tasks/images.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
- name: Generate diskimage-builder images
8484
vars:
8585
dib_args: >-
86-
{% if item.size is defined %}--image-size {{ item.size }}{% endif %} {% if item.type is defined %}-t {{ item.type }}{% endif %} {% if item.packages | default
87-
%}-p {{ item.packages | join(',') }}{% endif %} {{ os_images_common }} {{ item.elements | join(' ') }} -o {{ item.name }}
86+
{% if item.size is defined %}--image-size {{ item.size }}{% endif %} {% if os_images_architecture is defined %}-a {{ os_images_architecture }}{% endif %}
87+
{% if item.type is defined %}-t {{ item.type }}{% endif %} {% if item.packages | default %}-p {{ item.packages | join(',') }}{% endif %}
88+
{{ os_images_common }} {{ item.elements | join(' ') }} -o {{ item.name }} -a {{ os_images_architecture }}
8889
ansible.builtin.shell: . {{ os_images_dib_venv }}/bin/activate && disk-image-create {{ dib_args }} > {{ item.name }}.stdout 2> {{ item.name }}.stderr
8990
args:
9091
chdir: "{{ os_images_cache }}/{{ item.name }}"

0 commit comments

Comments
 (0)