|
@@ -50,7 +50,7 @@
|
|
|
when: "'cobbler' not in k8s_namespaces.stdout"
|
|
|
|
|
|
- name: Inspect the cobbler image
|
|
|
- command: "buildah images {{ cobbler_image_name }}"
|
|
|
+ command: "buildah images"
|
|
|
register: cobbler_image_result
|
|
|
failed_when: false
|
|
|
changed_when: false
|
|
@@ -66,7 +66,7 @@
|
|
|
- name: Update cobbler image status
|
|
|
set_fact:
|
|
|
cobbler_image_status: true
|
|
|
- when: "'No such image' not in cobbler_image_result.stderr"
|
|
|
+ when: cobbler_image_name in cobbler_image_result.stdout
|
|
|
tags: install
|
|
|
|
|
|
- name: Update cobbler container status
|
|
@@ -103,4 +103,4 @@
|
|
|
- cobbler_container_status
|
|
|
- "'CentOS' in cobbler_profile_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"
|