Skip to content

Commit

Permalink
[migrating-to-ocpvirt] Download windows image (#7512)
Browse files Browse the repository at this point in the history
* [migrating-to-ocpvirt] Download windows image

* Update pre_software.yml
  • Loading branch information
agonzalezrh authored Dec 13, 2023
1 parent d360eaa commit 0ad4bd9
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions ansible/configs/migrating-to-ocpvirt/pre_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,32 +146,30 @@
hosts: bastion-vm
gather_facts: false
tasks:
- when: build_lab|bool
block:
- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', '{{ output_dir }}/{{ guid }}_id_rsa.pub' ) }}"

- name: Install httpd
yum:
name: httpd

- name: Start and enable httpd
service:
name: httpd
state: restarted
enabled: yes

- name: Download required files for the lab
get_url:
url: "https://www.opentlc.com/download/ocp4_virt_foundations/{{ item }}"
dest: "/var/www/html/{{ item }}"
owner: apache
group: apache
loop:
- Fedora35.qcow2
- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', '{{ output_dir }}/{{ guid }}_id_rsa.pub' ) }}"

- name: Install httpd
yum:
name: httpd

- name: Start and enable httpd
service:
name: httpd
state: restarted
enabled: yes

- name: Download required files for the lab
get_url:
url: "https://www.opentlc.com/download/ocp4_virt_foundations/{{ item }}"
dest: "/var/www/html/{{ item }}"
owner: apache
group: apache
loop:
- Fedora35.qcow2
- Windows2019.iso

- name: PreSoftware flight-check
hosts: localhost
Expand Down

0 comments on commit 0ad4bd9

Please sign in to comment.