1) ansible's get_url moves from sha256 to checksum
2) fix 'registered' name (import -> imported) in import_distro_image
Signed-off-by: Dan Mick <dmick@redhat.com>
get_url:
url={{ distro.kernel }}
dest={{ kernel_path }}
- sha256sum={{ distro.kernel_sha256 }}
+ checksum=sha256:{{ distro.kernel_sha256 }}
when: profile is defined and profile.stdout == ''
register: download_kernel
get_url:
url={{ distro.initrd }}
dest={{ initrd_path }}
- sha256sum={{ distro.initrd_sha256 }}
+ checksum=sha256:{{ distro.initrd_sha256 }}
when: profile is defined and profile.stdout == ''
register: download_initrd
- name: Add the profile to cobbler
command: cobbler profile add --name {{ distro_name }} --distro {{ distro_name }}
- when: import is defined and import.stdout == ''
+ when: imported is defined and imported.stdout == ''
register: imported