1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- ---
- - name: Check availability of iso file
- stat:
- path: "{{ role_path }}/files/{{ iso_name }}"
- register: iso_status
- - name: Iso file not present
- fail:
- msg: "{{ iso_fail }}"
- when: iso_status.stat.exists == false
- register: iso_file_check
- - name: Initialize variables
- set_fact:
- cobbler_status: false
- cobbler_image_status: false
- tags: install
- - name: Inspect the cobbler image
- docker_image_info:
- name: cobbler
- register: cobbler_image_result
- tags: install
- - name: Check cobbler status on the machine
- docker_container_info:
- name: cobbler
- register: cobbler_result
- tags: install
- - name: Update cobbler image status
- set_fact:
- cobbler_image_status: true
- when: cobbler_image_result.images| length==1
- tags: install
- - name: Update cobbler status
- set_fact:
- cobbler_status: true
- when: cobbler_result.exists
- tags: install
|