diff --git a/defaults/main.yml b/defaults/main.yml index f439cd3c..b33cb73b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -402,6 +402,9 @@ ironic_deploy_image_list: disk_format: 'ari' name: "{{ ironic_deploy_image_initramfs_name }}" +#allow user defined extra images to upload +ironic_extra_deploy_image_list: [] + # Ironic inspector ironic_inspector_enable_discovery: True ironic_inspector_openstack_db_connection_string: "mysql+pymysql://{{ ironic_inspector_galera_user }}:{{ ironic_inspector_container_mysql_password }}@{{ ironic_inspector_galera_address }}:{{ ironic_inspector_galera_port }}/{{ ironic_inspector_galera_database }}?charset=utf8{% if ironic_inspector_galera_use_ssl | bool %}&ssl_verify_cert=true{% if ironic_inspector_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ ironic_inspector_galera_ssl_ca_cert }}{% endif %}{% endif %}" diff --git a/tasks/ironic_deploy_image.yml b/tasks/ironic_deploy_image.yml index 62c6acff..ed6b0e87 100644 --- a/tasks/ironic_deploy_image.yml +++ b/tasks/ironic_deploy_image.yml @@ -38,8 +38,7 @@ retries: 10 delay: 10 register: ironic_download_results - with_items: - - "{{ ironic_deploy_image_list }}" + with_items: "{{ ironic_deploy_image_list + ironic_extra_deploy_image_list }}" - name: Upload images openstack.cloud.image: @@ -49,5 +48,4 @@ container_format: "{{ item.item.container_format }}" disk_format: "{{ item.item.disk_format }}" filename: "{{ item.dest }}" - with_items: - - "{{ ironic_download_results.results }}" + with_items: "{{ ironic_download_results.results }}"