Use force rebuild feature in stackhpc.os-images role

Change-Id: I21a682c72cee97583dcb4f1a01fa023c6e885608
This commit is contained in:
Mark Goddard 2018-09-05 14:14:30 +01:00
parent 1ee04846f6
commit 44b140cedc
2 changed files with 2 additions and 12 deletions

View File

@ -23,12 +23,6 @@
ipa_image_force_rebuild: false
tasks:
- block:
- name: Ensure existing Ironic Python Agent images are removed (force rebuild)
file:
path: "{{ image_cache_path }}/{{ ipa_image_name }}"
state: absent
when: ipa_image_force_rebuild | bool
- name: Ensure Ironic Python Agent images are built
include_role:
name: stackhpc.os-images
@ -44,4 +38,5 @@
type: raw
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
os_images_upload: False
os_images_force_rebuild: "{{ ipa_image_force_rebuild }}"
when: ipa_build_images | bool

View File

@ -14,12 +14,6 @@
ipa_image_force_rebuild: false
tasks:
- block:
- name: Ensure existing Ironic Python Agent images are removed (force rebuild)
file:
path: "{{ image_cache_path }}/{{ ipa_image_name }}"
state: absent
when: ipa_image_force_rebuild | bool
- name: Ensure Ironic Python Agent images are built
include_role:
name: stackhpc.os-images
@ -35,6 +29,7 @@
type: raw
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
os_images_upload: False
os_images_force_rebuild: "{{ ipa_image_force_rebuild }}"
- name: Ensure Ironic Python Agent images are copied onto seed
copy: