]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler_profile: fix two bugs discovered while importing inktank-rescue 751/head
authorDan Mick <dmick@redhat.com>
Wed, 13 Dec 2023 22:33:38 +0000 (14:33 -0800)
committerDan Mick <dmick@redhat.com>
Wed, 13 Dec 2023 22:33:38 +0000 (14:33 -0800)
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>
roles/cobbler_profile/tasks/download_image.yml
roles/cobbler_profile/tasks/import_distro_image.yml

index a5acfd44f5ca6bd2f2df18ae3e8969f2739c6c18..17b1a7337274336969fcc7373e299e43242250d8 100644 (file)
@@ -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
 
index e188de6ac0736cc5c92108299a384d6095b31585..d5227ff5fa34504aae0271d10e001c281724539d 100644 (file)
@@ -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