瀏覽代碼

Update check_prerequisites.yml

Signed-off-by: Shubhangi-dell <shubhangi_srivastava@dell.com>
Shubhangi-dell 3 年之前
父節點
當前提交
9a99dae9e4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      control_plane/roles/provision_cobbler/tasks/check_prerequisites.yml

+ 1 - 1
control_plane/roles/provision_cobbler/tasks/check_prerequisites.yml

@@ -142,7 +142,7 @@
     cobbler_config_status: true
     cobbler_config_status: true
   when:
   when:
     - cobbler_container_status
     - cobbler_container_status
-    - (provision_os in cobbler_profile_list.stdout) or (previous_os in cobbler_profile_list.stdout)
+    - (provision_os in cobbler_profile_list.stdout) or (previous_os in cobbler_profile_list.stdout) or ( "" in cobbler_profile_list.stdout)
     - "'* * * * * /usr/bin/ansible-playbook /root/tftp.yml' in crontab_list.stdout"
     - "'* * * * * /usr/bin/ansible-playbook /root/tftp.yml' in crontab_list.stdout"
     - "'*/5 * * * * /usr/bin/ansible-playbook /root/inventory_creation.yml' in crontab_list.stdout"
     - "'*/5 * * * * /usr/bin/ansible-playbook /root/inventory_creation.yml' in crontab_list.stdout"