ソースを参照

Update cobbler_image.yml

Signed-off-by: Shubhangi-dell <shubhangi_srivastava@dell.com>
Shubhangi-dell 3 年 前
コミット
42f84410a4

+ 4 - 4
control_plane/roles/provision_cobbler/tasks/cobbler_image.yml

@@ -14,13 +14,13 @@
 ---
 
 - name: Image creation (It may take 5-10 mins)
-  command: "buildah bud -t {{ cobbler_image_name }}:{{ cobbler_image_tag }} --network host ."
+  command: "buildah bud  -f Dockerfile_rocky -t {{ cobbler_image_name }}:{{ cobbler_image_tag }} --network host ."
   changed_when: true
   args:
     chdir: "{{ role_path }}/files/"
   when: 
     - not cobbler_image_status
-    - provision_os != os_supported_leap
+    - mgmt_os == os_supported_rocky
   tags: install
 
 - name: Image creation (It may take 5-10 mins)
@@ -30,7 +30,7 @@
     chdir: "{{ role_path }}/files/"
   when: 
     - not cobbler_image_status
-    - provision_os == os_supported_leap
+    - mgmt_os == os_supported_leap
   tags: install
 
 - name: Update image name in k8s_cobbler.yml
@@ -48,4 +48,4 @@
 - name: Deploy cobbler pod
   command: "kubectl apply -f {{ role_path }}/files/k8s_cobbler.yml"
   changed_when: true
-  tags: install
+  tags: install