]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler_profile: s/import/imported 615/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 10 Mar 2021 20:07:20 +0000 (15:07 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 10 Mar 2021 20:07:20 +0000 (15:07 -0500)
I guess something changed in ansible so that it doesn't like 'import' as the variable name.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler_profile/tasks/import_distro.yml
roles/cobbler_profile/tasks/import_distro_image.yml
roles/cobbler_profile/tasks/import_distro_iso.yml

index ef4dfcb23c997b52bec05745e4e18eb38685beed..b0d5ad611b3990fa6c88f3e2e729a1b72c775655 100644 (file)
@@ -53,7 +53,7 @@
   set_fact:
     profile_found:
         ((profile is defined and profile.stdout == distro_name) or
-         (import is defined and import.rc == 0))
+         (imported is defined and imported.rc == 0))
 
 - import_tasks: update_kickstart.yml
   when: distro.kickstart is defined and
index 29d8e1e148cd55ba717fefbe5f4fb6f909858eb5..e188de6ac0736cc5c92108299a384d6095b31585 100644 (file)
@@ -31,9 +31,9 @@
   command: cobbler distro add --kernel {{ kernel_path }} --initrd {{ initrd_path }} --name {{ distro_name }}
   when: download is changed or (files_exist and
         profile is defined and profile.stdout == '')
-  register: import
+  register: imported
 
 - name: Add the profile to cobbler
   command: cobbler profile add --name {{ distro_name }} --distro {{ distro_name }}
   when: import is defined and import.stdout == ''
-  register: import
+  register: imported
index 53b06b42db42531c0d438bd82ff3284906e725ae..845f0f9819626b1579376471bbd489f60a508405 100644 (file)
@@ -39,7 +39,7 @@
 
 - name: Import the distro (also creates the profile)
   command: cobbler import --path={{ iso_mount }} --name={{ distro_name }} --arch={{ arch }}
-  register: import
+  register: imported
   when: mount is defined and mount is changed
 
 # In the next two step we need to