From: Dan Mick Date: Wed, 13 Dec 2023 22:33:38 +0000 (-0800) Subject: cobbler_profile: fix two bugs discovered while importing inktank-rescue X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fad39d3bca517bb0694bf893d10eafbfb3c2d82b;p=ceph-cm-ansible.git cobbler_profile: fix two bugs discovered while importing inktank-rescue 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 --- diff --git a/roles/cobbler_profile/tasks/download_image.yml b/roles/cobbler_profile/tasks/download_image.yml index a5acfd44..17b1a733 100644 --- a/roles/cobbler_profile/tasks/download_image.yml +++ b/roles/cobbler_profile/tasks/download_image.yml @@ -11,7 +11,7 @@ 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 @@ -19,7 +19,7 @@ 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 diff --git a/roles/cobbler_profile/tasks/import_distro_image.yml b/roles/cobbler_profile/tasks/import_distro_image.yml index e188de6a..d5227ff5 100644 --- a/roles/cobbler_profile/tasks/import_distro_image.yml +++ b/roles/cobbler_profile/tasks/import_distro_image.yml @@ -35,5 +35,5 @@ - 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