Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base_virt_ipi.yml #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tasks/base_virt_ipi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@
path: /var/lib/libvirt/images/centos8-kvm.qcow2
register: base_result

- block:
- name: Downloading CentOS 8 base image - primary site
ansible.builtin.get_url:
url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20230308.3.x86_64.qcow2
dest: /var/lib/libvirt/images/centos8-kvm.qcow2
checksum: sha256:1ab4a628211a9178979e916f9dc59c8db67b203666aab15743ea80e17f7d4083
mode: 0644
when: not base_result.stat.exists
- block:
- name: Downloading CentOS 8 base image - primary site
ansible.builtin.get_url:
url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20230308.3.x86_64.qcow2
dest: /var/lib/libvirt/images/centos8-kvm.qcow2
checksum: sha256:1ab4a628211a9178979e916f9dc59c8db67b203666aab15743ea80e17f7d4083
mode: 0644
when: not base_result.stat.exists
rescue:
- name: Remove broken file (delete file)
ansible.builtin.file:
Expand Down